mirror of
https://github.com/internetee/registry.git
synced 2025-08-04 08:52:04 +02:00
updated directo feature
This commit is contained in:
parent
8201e1e0d0
commit
ab8c911da1
2 changed files with 6 additions and 5 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue