DefaultVerificationTokenStrategy
The default VerificationTokenStrategy which generates a token consisting of the
base64-encoded current time concatenated with a random id. The token is considered
valid if the current time is within the configured verificationTokenDuration of the
time encoded in the token.
- Implements:
VerificationTokenStrategy
init
method
(injector: Injector) => generateVerificationToken
method
(_ctx: RequestContext) => stringverifyVerificationToken
method
(_ctx: RequestContext, token: string) => booleanWas this chapter helpful?