lacewing - v2.0.1
Preparing search index...
index
EncryptJWT
Class EncryptJWT
Index
Constructors
constructor
Methods
audience
claim
encrypt
expires
In
issuer
jwt
Id
not
Before
subject
unsafe
Allow
Missing
Audience
unsafe
Allow
Missing
Expiration
unsafe
Allow
Missing
Issuer
Constructors
constructor
new
EncryptJWT
(
typ
:
string
,
options
?:
EncryptJwtOptions
)
:
EncryptJWT
Parameters
typ
:
string
options
:
EncryptJwtOptions
= {}
Returns
EncryptJWT
Methods
audience
audience
(
aud
:
string
|
string
[]
)
:
this
Parameters
aud
:
string
|
string
[]
Returns
this
claim
claim
(
name
:
string
,
value
:
unknown
)
:
this
Parameters
name
:
string
value
:
unknown
Returns
this
encrypt
encrypt
(
key
:
LacewingEncryptionKey
)
:
Promise
<
string
>
Parameters
key
:
LacewingEncryptionKey
Returns
Promise
<
string
>
expires
In
expiresIn
(
duration
:
string
|
number
)
:
this
Parameters
duration
:
string
|
number
Returns
this
issuer
issuer
(
iss
:
string
)
:
this
Parameters
iss
:
string
Returns
this
jwt
Id
jwtId
(
jti
:
string
)
:
this
Override the auto-assigned
jti
. Uniqueness is then your problem.
Parameters
jti
:
string
Returns
this
not
Before
notBefore
(
duration
:
string
|
number
)
:
this
Parameters
duration
:
string
|
number
Returns
this
subject
subject
(
sub
:
string
)
:
this
Parameters
sub
:
string
Returns
this
unsafe
Allow
Missing
Audience
unsafeAllowMissingAudience
()
:
this
Returns
this
unsafe
Allow
Missing
Expiration
unsafeAllowMissingExpiration
()
:
this
Returns
this
unsafe
Allow
Missing
Issuer
unsafeAllowMissingIssuer
()
:
this
Returns
this
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
On This Page
Constructors
constructor
Methods
audience
claim
encrypt
expires
In
issuer
jwt
Id
not
Before
subject
unsafe
Allow
Missing
Audience
unsafe
Allow
Missing
Expiration
unsafe
Allow
Missing
Issuer
lacewing - v2.0.1
Loading...
Override the auto-assigned
jti. Uniqueness is then your problem.