mirror of
				https://github.com/fastapi-users/fastapi-users.git
				synced 2025-10-31 01:17:12 +08:00 
			
		
		
		
	Add doc about new OAuth callback error
This commit is contained in:
		| @ -238,6 +238,15 @@ Depending on the situation, several things can happen: | ||||
| !!! fail "`400 Bad Request`" | ||||
|     Invalid token. | ||||
|  | ||||
| !!! fail "`400 Bad Request`" | ||||
|     The OAuth provider didn't return an e-mail address. Make sure this provider return e-mail address through their API and you have asked for the required scope. | ||||
|  | ||||
|     ```json | ||||
|     { | ||||
|         "detail": "OAUTH_NOT_AVAILABLE_EMAIL" | ||||
|     } | ||||
|     ``` | ||||
|  | ||||
| !!! fail "`400 Bad Request`" | ||||
|     Another user with the same e-mail address already exists. | ||||
|  | ||||
| @ -292,6 +301,15 @@ Handle the OAuth callback and add the OAuth account to the current authenticated | ||||
| !!! fail "`400 Bad Request`" | ||||
|     Invalid token. | ||||
|  | ||||
| !!! fail "`400 Bad Request`" | ||||
|     The OAuth provider didn't return an e-mail address. Make sure this provider return e-mail address through their API and you have asked for the required scope. | ||||
|  | ||||
|     ```json | ||||
|     { | ||||
|         "detail": "OAUTH_NOT_AVAILABLE_EMAIL" | ||||
|     } | ||||
|     ``` | ||||
|  | ||||
| !!! success "`200 OK`" | ||||
|     ```json | ||||
|     { | ||||
|  | ||||
		Reference in New Issue
	
	Block a user
	 François Voron
					François Voron