Appearance
Password Recovery
If a user forgets their password, they can request a reset link via email or SMS.
Request Reset
The backend will send an email or SMS containing a reset token (usually embedded in a link).
javascript
// Request a password reset (user receives email/SMS with a token)
await sdk.auth.forgotPassword('player@casino.com');Reset Password
When the user clicks the link in their email/SMS, they are taken to a page where they can enter a new password. Pass the token from the URL and the new password to the SDK.
javascript
// Token extracted from the URL query parameter (e.g., ?token=abc123)
await sdk.auth.resetPassword('reset_token_from_url', 'newSecurePassword123');