Skip to main content

Jwt

@iota/identity-wasm API documentation


Class: Jwt

A wrapper around a JSON Web Token (JWK).

Constructors​

new Jwt()​

new Jwt(jwt_string): Jwt

Creates a new Jwt from the given string.

Parameters​

jwt_string​

string

Returns​

Jwt

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​

json​

any

Returns​

Jwt


clone()​

clone(): Jwt

Deep clones the object.

Returns​

Jwt