Skip to content
Migrating from NextAuth.js v4? Read our migration guide.
API reference
loops

providers/loops

Built-in Loops integration.

LoopsConfig

Extends

Properties

apiKey

apiKey: string;
Overrides

Omit.apiKey

from

from: string;
Inherited from

Omit.from

generateVerificationToken()?

optional generateVerificationToken: () => Awaitable<string>;
Returns

Awaitable<string>

Inherited from

Omit.generateVerificationToken

id

id: string;
Overrides

Omit.id

maxAge

maxAge: number;
Inherited from

Omit.maxAge

name

name: string;
Inherited from

Omit.name

normalizeIdentifier()?

optional normalizeIdentifier: (identifier) => string;
Parameters
ParameterType
identifierstring
Returns

string

Inherited from

Omit.normalizeIdentifier

options

options: LoopsUserConfig;

secret?

optional secret: string;

Used to hash the verification token.

Inherited from

Omit.secret

sendVerificationRequest()

sendVerificationRequest: (params) => Awaitable<void>;
Parameters
ParameterType
paramsVerificationParams
Returns

Awaitable<void>

server?

optional server: AllTransportOptions;

Used with SMTP-based email providers.

Inherited from

Omit.server

transactionalId

transactionalId: string;

type

type: "email";
Inherited from

Omit.type


LoopsUserConfig

type LoopsUserConfig: Omit<Partial<LoopsConfig>, "options" | "type">;

default()

default(config): LoopsConfig

Parameters

ParameterType
configLoopsUserConfig

Returns

LoopsConfig

LoopsConfig

Requires

LoopsUserConfig

Example

Loops({
 apiKey: process.env.LOOPS_API_KEY,
transactionalId: process.env.LOOPS_TRANSACTIONAL_ID,
})
Auth.js © Balázs Orbán and Team - 2024