This commit is contained in:
Mathieu Magnin 2024-09-27 16:49:23 +02:00
parent f26ff30538
commit e172f3ed6c
No known key found for this signature in database
GPG key ID: 8DCAFC82D7BA654E

View file

@ -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)