clerk-sdk-ruby icon indicating copy to clipboard operation
clerk-sdk-ruby copied to clipboard

auth_context.client_uat is string

Open ncri opened this issue 1 year ago • 0 comments

Needed to add a to_i in lib/clerk/authenticate_request.rb as the auth_context.client_uat is a string for me, so < caused an error.

if token["iat"] < auth_context.client_uat.to_i
    return handle_handshake_maybe_status(env, reason: AuthErrorReason::SESSION_TOKEN_OUTDATED);
end

Version used is v4.0.0.beta3. Btw., this version fixed a lot of issues compared to the latest stable version I used previously.

ncri avatar Apr 30 '24 17:04 ncri