Open Accounts
Opens the accounts page in the app.
Description
The openAccounts() action navigates the user to the native accounts page inside the app.
Function Signature
await Superfans.actions.openAccounts();| Parameter | Type | Required | Description |
|---|---|---|---|
| Nil | Nil | Nil | This action does not require any parameter. |
Structure of Response
| Status | Response |
|---|---|
| Success | { "status": "success", "message": "Accounts page opened successfully" } |
| Unexpected Error | { "status": "error", "errorId": 500, "errorHandle": "unknown-error", "message": "Something unexpected happened" } |
Example Usage
await Superfans.actions.openAccounts();Best Practices
- Use this from a profile icon or account dashboard CTA.
- If the user must be logged in, check
Superfans.variables.customerfirst and callopenAuthenticationwhen needed.
Caveats
- This action opens the native accounts screen; it does not log the user in or out.
- Logged-out users may be redirected to login depending on app configuration.
Updated about 7 hours ago
Did this page help you?