Function: MoneriumProvider()
MoneriumProvider(
params
: {children
:ReactNode
;clientId
:string
;debug
:false
;environment
:'sandbox'
;onRefreshTokenUpdate
: (token
:string
) =>void
;redirectUri
:string
;redirectUrl
:string
;refreshToken
:string
; }):Element
Wrap your application with the Monerium provider.
Parameters
Parameter | Type | Description |
---|---|---|
params | object | |
params.children | ReactNode | Rest of the application. |
params.clientId | string | Monerium auth flow client id. |
params.debug ? | boolean | Enable debug mode. |
params.environment ? | "sandbox" | "production" | Monerium environment. |
params.onRefreshTokenUpdate ? | (token : string ) => void | Callback that is called when the refresh token is updated. Store it securely. |
params.redirectUri | string | Monerium auth flow redirect url. |
params.redirectUrl ? | string | Deprecated use redirectUri |
params.refreshToken ? | string | Provide the securely stored refresh token to reconnect. |
Returns
Element