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

providers/loops

Built-in Loops integration.

LoopsConfig

Extends

Properties

apiKey

apiKey: string;
Overrides

Omit.apiKey

from?

optional 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?

optional 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) => Promise<void>;
Parameters
ParameterType
paramsParams
Returns

Promise<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.AUTH_LOOPS_KEY,
  transactionalId: process.env.AUTH_LOOPS_TRANSACTIONAL_ID,
})
Auth.js © Balázs Orbán and Team - 2024