Parameters
Authorization Scopes
Silent authorization (
auth_base) does not show a consent dialog and obtains the user information directly; all other scopes require the user’s explicit consent. Silent authorization 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
Related APIs
my.getOpenUserInfo
Get user information
Backend Authentication
Auth code exchange guide