diff --git a/backend/src/appointment/routes/auth.py b/backend/src/appointment/routes/auth.py index c2a975437..0a0945ba8 100644 --- a/backend/src/appointment/routes/auth.py +++ b/backend/src/appointment/routes/auth.py @@ -75,7 +75,8 @@ def fxa_login( try: url, state = fxa_client.get_redirect_url(db, token_urlsafe(32), email) except NotInAllowListException: - raise HTTPException(status_code=403, detail='Your email is not in the allow list') + if not invite_code: + raise HTTPException(status_code=403, detail='Your email is not in the allow list') request.session['fxa_state'] = state request.session['fxa_user_email'] = email