-
-
Notifications
You must be signed in to change notification settings - Fork 34
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hi, everyone. Can't get JWT Token #57
Comments
|
Social OauthACTIVATE_JWT = True Have you got things like this? |
yes |
What's about your urls setup? |
did you manage to get it to work? |
Sorry about the delay. Did you manage to get this fixed? Can you paste more information about your problem? |
I do get a JWT, but I have no idea how to use it in my client. When I try this:
I get this: {
"detail": "Given token not valid for any token type",
"code": "token_not_valid",
"messages": [
{
"token_class": "AccessToken",
"token_type": "access",
"message": "Token has no 'exp' claim"
}
]
} When I do this:
I get this: {
"detail": "Authorization header must contain two space-delimited values",
"code": "bad_authorization_header"
} |
Turned out that I had traces of rest_framework_simplejwt all over my code base. Removing these helped solve my issue. |
@GrechkinDV this is definitely not an error by drf-social-oauth2. That might be simplejwt as @denizdogan mentioned. |
So does that mean there's no way to use both rest_framework_simplejwt and drf_social_oauth2 |
So I was able to fix my issue and use both
SIMPLE_JWT = {
# other settings
"AUTH_HEADER_TYPES": ("JWT",),
} So for |
ACTIVATE_JWT is set to True. Though, I still get only Bearer token after convert-token request.
The text was updated successfully, but these errors were encountered: