bunway
Preparing search index...
JwtOptions
Interface JwtOptions
interface
JwtOptions
{
algorithms
?:
JwtAlgorithm
[]
;
audience
?:
string
|
string
[]
;
credentialsRequired
?:
boolean
;
getToken
?:
(
req
:
BunRequest
)
=>
string
|
undefined
;
isRevoked
?:
(
payload
:
JwtPayload
,
token
:
string
)
=>
Promise
<
boolean
>
;
issuer
?:
string
|
string
[]
;
jwksCacheTtl
?:
number
;
jwksUri
?:
string
;
onVerified
?:
(
payload
:
JwtPayload
,
req
:
BunRequest
,
)
=>
AuthUser
|
Promise
<
AuthUser
>
;
requestProperty
?:
string
;
role
?:
string
|
string
[]
;
roleField
?:
string
;
scope
?:
string
|
string
[]
;
scopeField
?:
string
;
secret
?:
|
string
|
Buffer
<
ArrayBufferLike
>
|
(
(
header
:
JwtHeader
)
=>
Promise
<
string
|
Buffer
<
ArrayBufferLike
>
>
)
;
}
Index
Properties
algorithms?
audience?
credentials
Required?
get
Token?
is
Revoked?
issuer?
jwks
Cache
Ttl?
jwks
Uri?
on
Verified?
request
Property?
role?
role
Field?
scope?
scope
Field?
secret?
Properties
Optional
algorithms
algorithms
?:
JwtAlgorithm
[]
Optional
audience
audience
?:
string
|
string
[]
Optional
credentials
Required
credentialsRequired
?:
boolean
Optional
get
Token
getToken
?:
(
req
:
BunRequest
)
=>
string
|
undefined
Optional
is
Revoked
isRevoked
?:
(
payload
:
JwtPayload
,
token
:
string
)
=>
Promise
<
boolean
>
Optional
issuer
issuer
?:
string
|
string
[]
Optional
jwks
Cache
Ttl
jwksCacheTtl
?:
number
Optional
jwks
Uri
jwksUri
?:
string
Optional
on
Verified
onVerified
?:
(
payload
:
JwtPayload
,
req
:
BunRequest
,
)
=>
AuthUser
|
Promise
<
AuthUser
>
Optional
request
Property
requestProperty
?:
string
Optional
role
role
?:
string
|
string
[]
Optional
role
Field
roleField
?:
string
Optional
scope
scope
?:
string
|
string
[]
Optional
scope
Field
scopeField
?:
string
Optional
secret
secret
?:
|
string
|
Buffer
<
ArrayBufferLike
>
|
(
(
header
:
JwtHeader
)
=>
Promise
<
string
|
Buffer
<
ArrayBufferLike
>
>
)
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
On This Page
Properties
algorithms
audience
credentials
Required
get
Token
is
Revoked
issuer
jwks
Cache
Ttl
jwks
Uri
on
Verified
request
Property
role
role
Field
scope
scope
Field
secret
bunway
Loading...