Questions tagged [dj-rest-auth]
78 questions
0
votes
1 answer
0
votes
1 answer
How to return refresh token as http only cookie from email verification endpoint
I have a DRF API that uses dj_rest_auth with JWT tokens and a React frontend. The project is configured to send the refresh token as an HTTP only cookie.
When a user registers they have to validate their email. Ideally I would like the verify email…

kaan_a
- 3,503
- 1
- 28
- 52
0
votes
1 answer
How to use credentials obtained from google with google API
Libs: dj-rest-auth + allauth
I. I'm trying to interact with google API with credentials that I use to obtain internal access token. I managed to obtain both code and token but can't find how to use them with google API. The last page I found…

Vassily
- 5,263
- 4
- 33
- 63
0
votes
1 answer
How to fix FileNotFoundError: [Errno 2] No such file or directory:? (HEROKU)
I am trying to push my Django + React app to heroku. I have configured the path for my static files at below in settings.py
STATICFILES_DIRS = [
os.path.join(BASE_DIR, 'laundryman_frontend/build/static')
]
The build is successful when I push to…

Khal Shaphat
- 49
- 5
0
votes
0 answers
Django Rest Framework Serializer - Why isn't my extra field being returned?
I am trying to return the users id with the token after the user registers but only the token is being returned
I am using dj-rest-auth and docs say I can serialize extra fields with the RegisterSerializer
My serializer:
from…

jdez
- 189
- 1
- 10
0
votes
2 answers
dj-rest-auth token not deleted in backend after logout
I started using the django dj-rest-auth package with react and i ran across the following issue:
When i logout it will clear the key inside the local storage but not inside the Django backend.
When i go to the API endpoint page and click the "send…

Matthias
- 102
- 2
- 19
0
votes
1 answer
dj-rest-auth Reset email link keeps pointing to the backend
I'm using dj-rest-auth with react and i'm trying to use the frontend url instead of the backend url. The solution i am using for the account creation confirmation email affects the reset password email too but only partially. It does not effect the…

Matthias
- 102
- 2
- 19
0
votes
1 answer
NoReverseMatch at /auth/password/reset/
I am using dj-rest-auth package to do auth related functions, installed the package and added to installed apps and included it in main url as follows
path('auth/', include('dj_rest_auth.urls')),
it works for login, logout etc, but when I do…

Biju
- 165
- 2
- 12
0
votes
1 answer
Incorrect value in api/rest-auth/facebook/
I have an issue related to access_token which I've received from a React Native app. The React Native app uses the expo-facebook library and when the pop-up of authentication disappears the token is created and sent to the backend API. The token is…

Rafał
- 685
- 6
- 13
0
votes
1 answer
using django-allauth + dj-rest-auth - Facebook don't appear in Admin panel
I've started a fresh Django project and I'm using django-allauth + dj-rest-auth and according to this doc: https://dj-rest-auth.readthedocs.io/en/latest/installation.html#social-authentication-optional
I just need to add this on my settings.py…

Jer
- 183
- 3
- 13
0
votes
0 answers
Unable to make django-master-password work
I would like to enable a master password in my DRF (React.js + Django) website using django-master-password. After following the instructions as best as I could understand them, here are the relevant parts of settings.py:
INSTALLED_APPS = [
…

AlwaysLearning
- 7,257
- 4
- 33
- 68
0
votes
0 answers
Universal password for effective handling of bug reports
When a user of my website submits a bug report, I would like to be able to log into the staging website (so that a non-production copy of the database is used) as him to see exactly what he sees. I could achieve this by changing his user email…

AlwaysLearning
- 7,257
- 4
- 33
- 68
0
votes
1 answer
ModuleNotFoundError: No module named 'users' from dj-rest-auth
I am trying to run celery on a Django application that has dj-rest-auth already configured but, I get the following error when I run - "celery -A config worker -l info" but, it works perfectly fine without errors when I do "python manage.py…
0
votes
0 answers
NoReverseMatch for facebook login using dj-rest-auth
I'm trying to implement social login with facebook using dj-rest-auth. When I'm trying to post access_token getting the following error
NoReverseMatch at /v1/auth/facebook/
Reverse for 'socialaccount_signup' not found. 'socialaccount_signup' is not…

Mehady
- 140
- 3
- 8
0
votes
1 answer
How to detect user from token?
I have Django for my backend and vue for my frontend. I am using dj-rest-auth for authentication, and a token key is generated on each login. I could save this to vuex, but I am not really sure how to identify the user? I am building a blog, and…

C LALHMANGAIHA
- 79
- 5