Skip to main content

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.

Signature

init

method(injector: Injector) =>

generateVerificationToken

method(_ctx: RequestContext) => string

verifyVerificationToken

method(_ctx: RequestContext, token: string) => boolean
Was this chapter helpful?
Report Issue
Edited Feb 10, 2026ยทEdit this page