dev: fix oauth configuration check (#3062)

This commit is contained in:
Nikhil 2023-12-11 16:17:11 +05:30 committed by GitHub
parent dd87bd0ee2
commit 9918d5242c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -167,12 +167,6 @@ class OauthEndpoint(BaseAPIView):
]
)
if not GOOGLE_CLIENT_ID or not GITHUB_CLIENT_ID:
return Response(
{"error": "Github or Google login is not configured"},
status=status.HTTP_400_BAD_REQUEST,
)
if not medium or not id_token:
return Response(
{