Class: Jwt
identity_wasm.Jwt
A wrapper around a JSON Web Token (JWK).
Table of contents
Constructors
Methods
Constructors
constructor
• new Jwt(jwt_string
)
Creates a new Jwt from the given string.
Parameters
Name | Type |
---|---|
jwt_string | string |
Methods
toString
▸ toString(): string
Returns a clone of the JWT string.
Returns
string
toJSON
▸ toJSON(): any
Serializes this to a JSON object.
Returns
any
fromJSON
▸ Static
fromJSON(json
): Jwt
Deserializes an instance from a JSON object.
Parameters
Name | Type |
---|---|
json | any |
Returns
clone
▸ clone(): Jwt
Deep clones the object.