Skip to main content
Version: 1.4

Class: UnknownCredential

identity_wasm.UnknownCredential

Table of contents

Methods

Methods

tryIntoJwt

tryIntoJwt(): undefined | Jwt

Returns a Jwt if the credential is of type string, undefined otherwise.

Returns

undefined | Jwt


tryIntoCredential

tryIntoCredential(): undefined | Credential

Returns a Credential if the credential is of said type, undefined otherwise.

Returns

undefined | Credential


tryIntoRaw

tryIntoRaw(): undefined | Record\<string, any>

Returns the contained value as an Object, if it can be converted, undefined otherwise.

Returns

undefined | Record\<string, any>


toJSON

toJSON(): any

Serializes this to a JSON object.

Returns

any


fromJSON

Static fromJSON(json): UnknownCredential

Deserializes an instance from a JSON object.

Parameters

NameType
jsonany

Returns

UnknownCredential


clone

clone(): UnknownCredential

Deep clones the object.

Returns

UnknownCredential