Preparing search index...
The search index is not available
@aeternity/aepp-sdk
@aeternity/aepp-sdk
ensureJwt
Function ensureJwt
ensure
Jwt
(
maybeJwt
)
:
asserts
maybeJwt
is
`
eyJhbGciOiJFZERTQSIsInR5cCI6IkpXVCJ9.
${
string
}
.
${
string
}
`
Throws an error if argument is not JWT. Use to ensure that a value is JWT.
Parameters
maybeJwt
:
string
A string to check
Returns
asserts
maybeJwt
is
`
eyJhbGciOiJFZERTQSIsInR5cCI6IkpXVCJ9.
${
string
}
.
${
string
}
`
Settings
Member Visibility
Protected
Inherited
Theme
OS
Light
Dark
@aeternity/aepp-sdk
Loading...
Throws an error if argument is not JWT. Use to ensure that a value is JWT.