sonar issue

This commit is contained in:
jain
2023-07-11 11:52:07 +05:30
parent c0f20f732d
commit 41761f22e8
6 changed files with 33 additions and 29 deletions

View File

@ -109,8 +109,6 @@ class SigninWithApple(views.APIView):
def post(self, request):
token = request.data.get("access_token")
user_type = request.data.get("user_type")
if not token:
return custom_error_response(ERROR_CODE['2027'], response_status=status.HTTP_400_BAD_REQUEST)
try:
decoded_data = jwt.decode(token, options={"verify_signature": False})
user_data = {"email": decoded_data.get('email'), "username": decoded_data.get('email'), "is_active": True}