Constructor with only env as an argument
Constructor with ClassOptions
Optional
bearerThe bearer profile will be available after authentication, it includes the access_token and refresh_token
Optional
code@deprecated, use localStorage, will be removed in v3 The PKCE code verifier
since v2.6.4, will be removed in 2.7.2+, use getAccess instead.
Construct the url to the authorization code flow,
Code Verifier needed for the code challenge is stored in local storage
For automatic wallet link, add the following properties: address
, signature
& chainId
Optional
client: AuthFlowOptionssince v2.7.1, will be removed in 2.7.2+, use getAccess instead.
Get access to the API
boolean to indicate if access has been granted
Optional
client: ClientCredentials | AuthorizationCodeCredentialsthe client credentials
since v2.6.4, will be removed in 2.7.2+, use authorize instead.
Optional
filter: OrderFiltersince v2.0.7, will be removed in 2.7.2+, use getAuthFlowURI instead.
Subscribe to MoneriumEvent to receive notifications using the Monerium API (WebSocket) We are setting a subscription map because we need the user to have a token to start the WebSocket connection https://monerium.dev/api-docs#operation/profile-orders-notifications
The event to subscribe to
The handler to be called when the event is triggered
Unsubscribe from MoneriumEvent and close the socket if there are no more subscriptions
The event to unsubscribe from
Generated using TypeDoc
Constructor for no arguments, defaults to sandbox