Features
Docs
CLI
Benchmarks
Examples

© 2024 MoroJs

@morojs/moro


@morojs/moro / providers

Variable: providers

const providers: object

Defined in: src/core/middleware/built-in/auth/core.ts:12

Type Declaration

apple()

apple: (options) => AuthProvider

Parameters

options
clientId

string

clientSecret

string

Returns

AuthProvider

credentials()

credentials: (options) => AuthProvider

Parameters

options
authorize

(credentials) => Promise<any>

credentials

Record<string, any>

name?

string

Returns

AuthProvider

discord()

discord: (options) => AuthProvider

Parameters

options
clientId

string

clientSecret

string

scope?

string

Returns

AuthProvider

email()

email: (options) => AuthProvider

Parameters

options
from

string

server

string | { auth: any; host: string; port: number; }

Returns

AuthProvider

facebook()

facebook: (options) => AuthProvider

Parameters

options
clientId

string

clientSecret

string

Returns

AuthProvider

github()

github: (options) => AuthProvider

Parameters

options
clientId

string

clientSecret

string

scope?

string

Returns

AuthProvider

google()

google: (options) => AuthProvider

Parameters

options
clientId

string

clientSecret

string

scope?

string

Returns

AuthProvider

linkedin()

linkedin: (options) => AuthProvider

Parameters

options
clientId

string

clientSecret

string

Returns

AuthProvider

magicLink()

magicLink: (options) => AuthProvider

Parameters

options
expiresIn?

number

from

string

sendMagicLink?

(email, url) => Promise<void>

Returns

AuthProvider

microsoft()

microsoft: (options) => AuthProvider

Parameters

options
clientId

string

clientSecret

string

tenant?

string

Returns

AuthProvider

otp()

otp: (options) => AuthProvider

Parameters

options
expiresIn?

number

from?

string

length?

number

sendOTP?

(contact, code) => Promise<void>

Returns

AuthProvider

passkey()

passkey: (options) => AuthProvider

Parameters

options
origin?

string

rpId?

string

rpName?

string

Returns

AuthProvider

twitter()

twitter: (options) => AuthProvider

Parameters

options
clientId

string

clientSecret

string

Returns

AuthProvider