File tree Expand file tree Collapse file tree 2 files changed +6
-5
lines changed Expand file tree Collapse file tree 2 files changed +6
-5
lines changed Original file line number Diff line number Diff line change 1313from oauthlib .oauth2 .rfc6749 .errors import CustomOAuth2Error
1414from social_core .backends .oauth import BaseOAuth2
1515from social_core .strategy import BaseStrategy
16- from starlette .exceptions import HTTPException
1716from starlette .requests import Request
1817from starlette .responses import RedirectResponse
1918
2019from .claims import Claims
2120from .client import OAuth2Client
22-
23-
24- class OAuth2LoginError (HTTPException ):
25- """Raised when any login-related error occurs."""
21+ from .exceptions import OAuth2LoginError
2622
2723
2824class OAuth2Strategy (BaseStrategy ):
Original file line number Diff line number Diff line change 1+ from starlette .exceptions import HTTPException
2+
3+
4+ class OAuth2LoginError (HTTPException ):
5+ """Raised when any login-related error occurs."""
You can’t perform that action at this time.
0 commit comments