• Unpack JWT. It will check signature if address or "sub_jwk" provided.

    Parameters

    • jwt: `eyJhbGciOiJFZERTQSIsInR5cCI6IkpXVCJ9.${string}.${string}`

      JWT to unpack

    • Optionaladdress: `ak_${string}`

      Address to check signature

    Returns {
        payload: any;
        signer: AccountAddress | undefined;
    }

    • payload: any

      JWT payload as object

    • signer: AccountAddress | undefined

      Undefined returned in case signature is not checked