INNER CODE UNIT · Python

user

dorinclisu/fastapi-auth0 · src/fastapi_auth0/auth.py:219

            user = self.auth0_user_model(**payload)

            if self.email_auto_error and not user.email:
                raise Auth0UnauthorizedException(detail=f'Missing email claim (check auth0 rule "Add email to access token")')

            return user

        except ValidationError as e:
            logger.error(f'Handled exception parsing Auth0User: "{e}"', exc_info=True)
            if self.auto_error:
                raise Auth0UnauthorizedException(detail='Error parsing Auth0User')
            else:
                return None

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…