@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?
optional
session: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?
optional
token:string
Defined in: src/types/auth.ts:338
user?
optional
user:AuthUser
Defined in: src/types/auth.ts:336