Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions packages/core/auth-js/src/GoTrueClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3649,8 +3649,8 @@ export default class GoTrueClient {
raw: { header: rawHeader, payload: rawPayload },
} = decodeJWT(token)

if (!options?.allowExpired) {
// Reject expired JWTs should only happen if jwt argument was passed
// Only validate expiration if allowExpired is NOT true
if (options?.allowExpired !== true) {
validateExp(payload.exp)
}

Expand Down
Loading