Skip to content

Commit 2925374

Browse files
committed
adds more account linking error code
1 parent fee2ba5 commit 2925374

File tree

3 files changed

+36
-0
lines changed

3 files changed

+36
-0
lines changed

v2/thirdparty/common-customizations/account-linking/automatic-account-linking.mdx

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -459,5 +459,17 @@ This used to be an error code which is no longer valid and can be ignored.
459459
```
460460
- In order to link the third party user with the session user, we need to make sure that the session user is a primary user. However, that can fail if there exists another primary user with the same email as the session user, and in this case, this error is returned to the frontend.
461461

462+
### ERR_CODE_024
463+
- This happens during third party sign in, when the user is trying to sign in with a non-primary user, and the third party provider does not verify their email, and their exists a primary user with the same email. This can also happen the other way around wherein the user is trying to sign in with the primary user (unverified email), and there exists a non-primary user with the same email.
464+
- API Path is `/signinup POST`.
465+
- Output JSON:
466+
```json
467+
{
468+
"status": "SIGN_IN_UP_NOT_ALLOWED",
469+
"reason": "Cannot sign in / up due to security reasons. Please contact support. (ERR_CODE_024)"
470+
}
471+
```
472+
- This can be resolved by deleting the (non primary) user that has the same email ID, or by manually marking the email of the user as verified for the login method that they are trying to sign in with.
473+
462474
### Changing the error message on the frontend
463475
If you want to display a different message to the user, or use a different status code, you can change them on the frontend via [the language translation feature](../translations).

v2/thirdpartyemailpassword/common-customizations/account-linking/automatic-account-linking.mdx

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -459,5 +459,17 @@ This used to be an error code which is no longer valid and can be ignored.
459459
```
460460
- In order to link the third party user with the session user, we need to make sure that the session user is a primary user. However, that can fail if there exists another primary user with the same email as the session user, and in this case, this error is returned to the frontend.
461461

462+
### ERR_CODE_024
463+
- This happens during third party sign in, when the user is trying to sign in with a non-primary user, and the third party provider does not verify their email, and their exists a primary user with the same email. This can also happen the other way around wherein the user is trying to sign in with the primary user (unverified email), and there exists a non-primary user with the same email.
464+
- API Path is `/signinup POST`.
465+
- Output JSON:
466+
```json
467+
{
468+
"status": "SIGN_IN_UP_NOT_ALLOWED",
469+
"reason": "Cannot sign in / up due to security reasons. Please contact support. (ERR_CODE_024)"
470+
}
471+
```
472+
- This can be resolved by deleting the (non primary) user that has the same email ID, or by manually marking the email of the user as verified for the login method that they are trying to sign in with.
473+
462474
### Changing the error message on the frontend
463475
If you want to display a different message to the user, or use a different status code, you can change them on the frontend via [the language translation feature](../translations).

v2/thirdpartypasswordless/common-customizations/account-linking/automatic-account-linking.mdx

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -459,5 +459,17 @@ This used to be an error code which is no longer valid and can be ignored.
459459
```
460460
- In order to link the third party user with the session user, we need to make sure that the session user is a primary user. However, that can fail if there exists another primary user with the same email as the session user, and in this case, this error is returned to the frontend.
461461

462+
### ERR_CODE_024
463+
- This happens during third party sign in, when the user is trying to sign in with a non-primary user, and the third party provider does not verify their email, and their exists a primary user with the same email. This can also happen the other way around wherein the user is trying to sign in with the primary user (unverified email), and there exists a non-primary user with the same email.
464+
- API Path is `/signinup POST`.
465+
- Output JSON:
466+
```json
467+
{
468+
"status": "SIGN_IN_UP_NOT_ALLOWED",
469+
"reason": "Cannot sign in / up due to security reasons. Please contact support. (ERR_CODE_024)"
470+
}
471+
```
472+
- This can be resolved by deleting the (non primary) user that has the same email ID, or by manually marking the email of the user as verified for the login method that they are trying to sign in with.
473+
462474
### Changing the error message on the frontend
463475
If you want to display a different message to the user, or use a different status code, you can change them on the frontend via [the language translation feature](../translations).

0 commit comments

Comments
 (0)