Skip to main content

VerificationTokenStrategy

Defines a custom strategy for creating and validating verification tokens.

Info

This is configured via the authOptions.verificationTokenStrategy property of your VendureConfig.

Signature

generateVerificationToken

method(ctx: RequestContext) => Promise<string> | stringv3.2.0

Generates a verification token.

verifyVerificationToken

method(ctx: RequestContext, token: string) => Promise<boolean> | booleanv3.2.0

Checks the validity of a verification token.

Was this chapter helpful?
Report Issue
Edited Feb 10, 2026ยทEdit this page