Class DefaultArnAuthService

ARN Client authentication service.

Hierarchy

  • DefaultArnAuthService

Implements

Constructors

Properties

_currentContext: undefined | ArnAuthContext = undefined
_currentContext$: BehaviorSubject<undefined | ArnAuthContext> = ...
config: ArnValidAuthConfig
connectorFactory: ArnConnectorFactory
emitter: EventEmitter<string | symbol, any>
status$: Observable<undefined | ArnAuthStatus> = ...
LEGACY_AUTH_CACHE_KEY: "wcSessionSigned" = 'wcSessionSigned'

Deprecated

This key should not be used anymore. It is kept for backward compatibility.

QUERY_PARAM_ARIANEE_ACCESS_TOKEN: "arianeeAccessToken" = 'arianeeAccessToken'
WC_CACHE_KEY: "walletconnect" = 'walletconnect'

Deprecated

This key should not be used outside the cleanWalletConnectInternalCache method.

Accessors

Methods

  • Sign a jwt with a given key.

    Parameters

    • jwt: JWT

      The JWT to sign.

    • keyName: string

      The symbolic name of the key, to be found in the ARN project auth configuration.

    • Optional tokenId: string

      The id of the token to use for signing (if the key is restricted token owners of a specific contract).

    Returns Promise<string>

Generated using TypeDoc