Skip to content

Commit

Permalink
fix: Error caused by comparing auth_context.client_uat as string
Browse files Browse the repository at this point in the history
Fixes #61
  • Loading branch information
dimkl authored and agis committed Nov 1, 2024
1 parent bcfce05 commit b111311
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/clerk/authenticate_request.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
return handle_handshake_maybe_status(env, reason: AuthErrorReason::SESSION_TOKEN_OUTDATED)
end

Expand Down

0 comments on commit b111311

Please sign in to comment.