Its been a while
CI / scan_ruby (push) Failing after 2m13s
CI / lint (push) Failing after 20s

This commit is contained in:
Jason Jordan
2026-07-23 10:41:46 -04:00
parent 16fadfd529
commit 9853d58469
83 changed files with 1978 additions and 243 deletions
+1 -1
View File
@@ -13,7 +13,7 @@ class JsonWebToken
# encode payload into a jwt
# payload is usually like: { user_id: 1 }
# exp = token expiration (default: 1 hour from now for better security)
# jti = unique token identifier for blacklisting
# jti = unique token identifier for retireing
def self.encode(payload, exp = 1.hour.from_now)
payload[:exp] = exp.to_i
payload[:jti] ||= SecureRandom.uuid