@morojs/moro / AuthRequest
Interface: AuthRequest
Defined in: src/types/auth.ts:335
Properties
getCsrfToken()
getCsrfToken: () =>
Promise<string>
Defined in: src/types/auth.ts:357
Returns
Promise<string>
getProviders()
getProviders: () =>
Promise<Record<string,AuthProvider>>
Defined in: src/types/auth.ts:360
Returns
Promise<Record<string, AuthProvider>>
getSession()
getSession: () =>
Promise<null|AuthSession>
Defined in: src/types/auth.ts:353
Returns
Promise<null | AuthSession>
getToken()
getToken: () =>
Promise<null|AuthJWT>
Defined in: src/types/auth.ts:354
Returns
Promise<null | AuthJWT>
isAuthenticated
isAuthenticated:
boolean
Defined in: src/types/auth.ts:339
session?
optionalsession:AuthSession
Defined in: src/types/auth.ts:337
signIn()
signIn: (
provider?,options?) =>Promise<any>
Defined in: src/types/auth.ts:342
Parameters
provider?
string
options?
callbackUrl?
string
redirect?
boolean
Returns
Promise<any>
signOut()
signOut: (
options?) =>Promise<any>
Defined in: src/types/auth.ts:351
Parameters
options?
callbackUrl?
string
redirect?
boolean
Returns
Promise<any>
token?
optionaltoken:string
Defined in: src/types/auth.ts:338
user?
optionaluser:AuthUser
Defined in: src/types/auth.ts:336