We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0fcded5 commit 944aa1bCopy full SHA for 944aa1b
recipe/emailverification/emailverificationClaim.go
@@ -47,7 +47,7 @@ func NewEmailVerificationClaim() *evclaims.TypeEmailVerificationClaim {
47
refetchTimeOnFalseInSeconds = &defaultTimeout
48
}
49
50
- claimValidator := booleanClaim.Validators.HasValue(true, refetchTimeOnFalseInSeconds, nil)
+ claimValidator := booleanClaim.Validators.HasValue(true, nil, nil)
51
claimValidator.ShouldRefetch = func(payload map[string]interface{}, userContext supertokens.UserContext) bool {
52
value := emailVerificationClaim.GetValueFromPayload(payload, userContext)
53
return value == nil || (value == false && *emailVerificationClaim.GetLastRefetchTime(payload, userContext) < time.Now().UnixMilli()-*refetchTimeOnFalseInSeconds*1000)
0 commit comments