updated directo feature

This commit is contained in:
olegphenomenon 2022-02-15 14:02:54 +02:00
parent 8201e1e0d0
commit ab8c911da1
2 changed files with 6 additions and 5 deletions

View file

@ -25,17 +25,17 @@ module EisBilling
end
def self.generate_token
JWT.encode(payload, ENV['secret_word'])
JWT.encode(payload, SECRET_WORD )
end
def self.payload
{ data: ENV['secret_access_word'] }
{ data: SECRET_ACCESS_WORD }
end
def self.headers
{
'Authorization' => "Bearer #{generate_token}",
'Content-Type' => 'application/json',
'Authorization' => "Bearer #{generate_token}",
'Content-Type' => 'application/json'
}
end
end