providers/loops
LoopsConfig
Extends
Omit
<EmailConfig
,"sendVerificationRequest"
|"options"
>
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
Parameter | Type |
---|---|
identifier | string |
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
Parameter | Type |
---|---|
params | Params |
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
Parameter | Type |
---|---|
config | LoopsUserConfig |
Returns
LoopsConfig
Requires
LoopsUserConfig
Example
Loops({
apiKey: process.env.AUTH_LOOPS_KEY,
transactionalId: process.env.AUTH_LOOPS_TRANSACTIONAL_ID,
})