Skip to main content

NativeAuthenticationStrategy

This strategy implements a username/password credential-based authentication, with the credentials being stored in the Vendure database. This is the default method of authentication, and it is advised to keep it configured unless there is a specific reason not to.

Signature

name

property

init

method(injector: Injector) =>

defineInputType

method() => DocumentNode

authenticate

method(ctx: RequestContext, data: NativeAuthenticationData) => Promise<User | false>

verifyUserPassword

method(ctx: RequestContext, userId: ID, password: string) => Promise<boolean>
Was this chapter helpful?
Report Issue
Edited Feb 25, 2026ยทEdit this page