Skip to main content

Type alias: Adapter<WithVerificationToken>

adapters.Adapter

Ƭ Adapter<WithVerificationToken>: DefaultAdapter & WithVerificationToken extends true ? { createVerificationToken: (verificationToken: VerificationToken) => Awaitable<VerificationToken | null | undefined> ; useVerificationToken: (params: { identifier: string ; token: string }) => Awaitable<VerificationToken | null> } : {}

Using a custom adapter you can connect to any database backend or even several different databases. Custom adapters created and maintained by our community can be found in the adapters repository. Feel free to add a custom adapter from your project to the repository, or even become a maintainer of a certain adapter. Custom adapters can still be created and used in a project without being added to the repository.

Useful resources​

See

Type parameters​

NameType
WithVerificationTokenboolean