Class ArnAuthContext

Hierarchy

  • ArnAuthContext

Constructors

Properties

_connector: undefined | ArnConnector
_status: ArnAuthStatus = ArnAuthContext.DEFAULT_STATUS
_status$: BehaviorSubject<ArnAuthStatus>
id: string
persist: boolean = true
AAT_JWT_HEADER: JWTHeader = ...
AUTH_CACHE_KEY: "arianee-auth-" = 'arianee-auth-'
DEFAULT_STATUS: ArnAuthStatus = ...
n: number = 0

Accessors

Methods

  • Request the user to send a transaction using his wallet.

    Returns

    The transaction response (not the receipt)

    Parameters

    • transaction: Deferrable<TransactionRequest>

      The transaction to send

    Returns Promise<TransactionResponse>

  • Request the user to send a transaction using his wallet.

    Returns

    The transaction hash (hex string)

    Parameters

    • transaction: Deferrable<TransactionRequest>

      The transaction to send

    Returns Promise<string>

  • Ask the wallet to sign an AAT.

    Parameters

    • jwtPayload: AnyArianeeJWT

      The AAT JWT Payload.

    • Optional message: string
    • Optional sep: string
    • jwtHeader: JWTHeader = ArnAuthContext.AAT_JWT_HEADER

    Returns Promise<string>

  • Request the user to sign a message using his wallet.

    Returns

    The signature of the message (hex string)

    Parameters

    • message: string

      The message to sign

    Returns Promise<string>

  • Request the user to sign a transaction using his wallet.

    Returns

    The signed transaction (hex string)

    Parameters

    • transaction: Deferrable<TransactionRequest>

      The transaction to sign

    Returns Promise<string>

  • Request the user to sign typed data using his wallet.

    See

    https://eips.ethereum.org/EIPS/eip-712

    Returns

    The signature of the typed data (hex string)

    Parameters

    • domain: TypedDataDomain
    • types: Record<string, TypedDataField[]>
    • value: Record<string, any>

    Returns Promise<string>

Generated using TypeDoc