Commit 77f68fcb authored by Ilham Maulana's avatar Ilham Maulana 💻

fix: user detail by token api TokenError handler

parent e8a226a9
...@@ -84,7 +84,7 @@ class UserDetailView(views.APIView): ...@@ -84,7 +84,7 @@ class UserDetailView(views.APIView):
) )
try: try:
token = header.replace("Bearer ", "") token = header.split(" ")[1]
verified_token = AccessToken(token=token) verified_token = AccessToken(token=token)
except TokenError: except TokenError:
return Response( return Response(
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment