Parameters
| Property | Type | Required | Description |
|---|---|---|---|
| scopes | Array | Yes | Authorization scopes to request (e.g., ['auth_user']) |
| success | Function | No | Callback with auth code |
| fail | Function | No | Callback on failure |
| complete | Function | No | Callback that always executes |
Success Callback
| Property | Type | Description |
|---|---|---|
| authCode | String | Short-lived authorization code |
| authSuccessScopes | Array | Successfully authorized scopes |
Code Example
Related APIs
my.getOpenUserInfo
Get user information
Backend Authentication
Auth code exchange guide