Learn why you shouldn’t build your own auth, and what happened to dozens of teams that didBack to Explorer

Xiaomi OAuth endpoints

Xiaomi OAuth endpoints and related development resources

Xiaomi authorization endpoint

https://account.xiaomi.com/oauth2/authorize
The endpoint to redirect users to in order to grant your application access to their account.

Xiaomi token endpoint

https://account.xiaomi.com/oauth2/token
The endpoint to exchange the authorization code or refresh token for an access token and a refresh token.

Xiaomi userinfo endpoint

https://open.account.xiaomi.com/user/profile
The standardized OAuth endpoint that returns authenticated user profile information, including claims about the current user based on the scope of access token.