[#10799] Fix tests
This commit is contained in:
parent
f26ff30538
commit
e172f3ed6c
1 changed files with 1 additions and 1 deletions
|
@ -18,7 +18,7 @@ class APIEntrepriseToken
|
|||
end
|
||||
|
||||
def expiration
|
||||
Time.zone.at(decoded_token["exp"])
|
||||
decoded_token.key?("exp") && Time.zone.at(decoded_token["exp"])
|
||||
end
|
||||
|
||||
def role?(role)
|
||||
|
|
Loading…
Reference in a new issue