Function: MoneriumProvider()
MoneriumProvider(
params: {children:ReactNode;clientId:string;debug:boolean;environment:"production"|"sandbox";onRefreshTokenUpdate: (token:string) =>void;redirectUri:string;redirectUrl:string;refreshToken:string; }):Element
Wrap your application with the Monerium provider.
Parameters
| Parameter | Type | Description |
|---|---|---|
params | { children: ReactNode; clientId: string; debug: boolean; environment: "production" | "sandbox"; onRefreshTokenUpdate: (token: string) => void; redirectUri: string; redirectUrl: string; refreshToken: string; } | |
params.children | ReactNode | Rest of the application. |
params.clientId | string | Monerium auth flow client id. |
params.debug? | boolean | Enable debug mode. |
params.environment? | "production" | "sandbox" | 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
Deprecated
This provider is obsolete and incompatible with @monerium/sdk v4. It is recommended to manage your own server-side token state and integrate with the new functional API directly.