            authenticated_user=signinup_response.user,
            recipe_user_id=signinup_response.recipe_user_id,
            request=api_options.request,
            tenant_id=tenant_id,
            user_context=user_context,
            session=session,
        )

        if not isinstance(post_auth_checks_result, PostAuthChecksOkResponse):
            reason = error_code_map[&#34;SIGN_IN_NOT_ALLOWED&#34;]
            assert isinstance(reason, str)
            return SignInUpNotAllowed(reason)

        