Add doc about new OAuth callback error

This commit is contained in:
François Voron
2022-11-04 09:40:21 +01:00
parent c91e7657db
commit aa4c5ef672

View File

@ -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
{