Skip to main content
Request user authorization and get an authorization code for backend token exchange.

Parameters

Authorization Scopes

Silent authorization (auth_base without a prompt) is only available for first-party Mini Programs. All third-party Mini Programs require explicit user authorization.

Success Callback

Fail Callback

Error Codes

Code Example

The authCode is short-lived and single-use. It must be exchanged server-side via the Rebell OpenAPI for a user context. Never validate the authCode client-side.

my.getOpenUserInfo

Get user information

Backend Authentication

Auth code exchange guide