[#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
|
end
|
||||||
|
|
||||||
def expiration
|
def expiration
|
||||||
Time.zone.at(decoded_token["exp"])
|
decoded_token.key?("exp") && Time.zone.at(decoded_token["exp"])
|
||||||
end
|
end
|
||||||
|
|
||||||
def role?(role)
|
def role?(role)
|
||||||
|
|
Loading…
Reference in a new issue