BadRequestError Occurs When Accepting Auth0 Teams Invitations
Last Updated:
Overview
A bad request error occurs when the invitation expires or becomes inactive, or when the invitation is successfully accepted but the user tries to subsequently log in afterward using the invitation link. To resolve this issue, if the user is confirmed not to already be a member of the Team, request a new invitation and accept it within three days of issuance. When attempting to accept a Team invitation, the following error occurs:
BadRequestError
Another situation that can cause a bad request error is when the invitation is accessed by a different identity or email than intended. Logging out of the Auth0 dashboard and accessing the invitation link again with the expected email address resolved this issue. When this happens, Auth0 will display the following error:
The specified account is not allowed to accept the current invitation
Applies To
- Auth0
- Teams Invitations
Cause
A BadRequestError occurs when accepting an Auth0 Teams invitation if the invitation expires or is no longer active. This happens if the Team Owner deletes the invitation in the Teams Dashboard, if the three-day expiration period passes, or if the invitation link has already been used and the user is already a member, but the user subsequently tries to log in using the invitation link.
Additionally, this error can be seen when the invitation is accessed by a different identity or email than intended. This can happen, for example, when the invitation link created for a specific email address is accessed while logged in to the Auth0 dashboard with an identity corresponding to a different email address for which the invitation was intended.
Solution
How is the BadRequestError resolved for Auth0 Teams invitations?
If the user is confirmed not to already be a member of the Team because they previously used that invitation link to accept the invite, to resolve the error, request a new invitation from the Team Owner and accept it before the three-day expiration period.
- Request a new Teams invitation from the Team Owner.
- Accept the Auth0 Teams invitation within three days of receipt.
How is the bad request error resolved for incorrect identity or email address access?
If the user was logged in to the Auth0 Dashboard at the time of accessing the invitation using another email address than the one expected, log out of the Auth0 Dashboard and access the invitation link using the expected email address.
- Log out of the Auth0 Dashboard directly or by visiting the Auth0 logout endpoint.
- Access the invitation link again using the expected email address for log-in or sign-up.