Skip to content

Commit

Permalink
Merge pull request #117 from supertokens/fix/emailverification-claim
Browse files Browse the repository at this point in the history
fix: Use DateProvider in emailVerificationClaim
  • Loading branch information
rishabhpoddar authored Jul 16, 2024
2 parents 5781bd8 + 1628dc4 commit ffe95c6
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion bundle/emailverification.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion bundle/website.js

Large diffs are not rendered by default.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion lib/ts/recipe/emailverification/emailVerificationClaim.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ export class EmailVerificationClaimClass extends BooleanClaim {
return true;
}

const currentTime = Date.now();
const currentTime = DateProvider.now();
const lastRefetchTime = this.getLastFetchedTime(payload, userContext)!;

if (maxAgeInSeconds !== undefined) {
Expand Down

0 comments on commit ffe95c6

Please sign in to comment.