Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Error caused by comparing auth_context.client_uat as string #62

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

dimkl
Copy link
Member

@dimkl dimkl commented May 9, 2024

Fixes #61

@dimkl dimkl self-assigned this May 9, 2024
@dimkl dimkl requested a review from a team as a code owner May 9, 2024 19:27
@dimkl dimkl requested review from gkats and agis May 9, 2024 19:28
Copy link
Member

@gkats gkats left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we add a test that catches this bug?

@@ -103,7 +103,7 @@ def resolve_cookie_token(env)
token = verify_token(auth_context.session_token_in_cookie)
return signed_out unless token

if token['iat'] < auth_context.client_uat
if token['iat'] < auth_context.client_uat.to_i
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

❓ Is there a chance that token['iat'] is nil? Comparing with nil will raise a NoMethodError.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

auth_context.client_uat is string
2 participants