I am currently doing the authentication for my React Native based application using Djoser in the backend. However, for account activation Djoser sends a link containing the uid and a token. I want this link to open a page on my app while I obtain the uid and token from the link. I need to send the uid and token in the link as the body in my activation request from my react native app.Please suggest how that can be done. Any help would be appreciable because I'm stuck on this particular part.
How to do account activation through email using Djoser and React Native?
1k views Asked by Seenin Sayyed At
2
There are 2 answers
0
Charles Edward Gagnon
On
I'm having the same issue and found a blog article that shows how to make a link to your react-native mobile app: https://medium.com/react-native-training/deep-linking-your-react-native-app-d87c39a1ad5e
This uses something called linking in react-native:
More specifications:
With djoser you can send an email to the user that provides an url to activate the user's account. This url you send should link to your frontend which will then call your api and activate the user. With the technique specified in the blog you will probably be able to do such a thing.
Related Questions in DJANGO
- Django Admin Panel and Sub URLs Returning 404 Error on Deployment
- How to return HTTP Get request response from models class in Django project
- Issue with Quantity Increment in Django E-commerce Cart
- Can't install Pipenv on Windows
- use dict from python in django html template and also in js
- 'pyodbc.Cursor' object has no attribute 'callproc', mssql with django
- Django socketio process
- Root path analogue in uWSGI as in Uvicorn
- Django - ModuleNotFoundError: No module named 'backend'
- Does Python being a loosely typed programming language make it less secure?
- sorl-thumbnail adds a background color when padding is used
- Can't connect to local postgresql server from my docker container
- Why ProductHunt api dont work with Python?
- why i have to put extra space in before write option selected because it show error if i don't ' option:selected'
- Django Arrayfield migration to cloud sql (Postgresql) not creating the column
Related Questions in REACT-NATIVE
- ussd reader in Recket Native module
- I can't make TextInput to auto expand properly in Android
- expo config plugin use import instead of require
- Custom Sound for Expo Push Notifications Only Works in Foreground
- run RTK dispatch on gesture start with React Native
- Should I set Back-End for my React Native application?
- using infoPlist in app.json for expo project seems to not be working
- Anyone have success configuring react-native-home-indicator?
- KeyboardAvoidingView makes a messy the flexbox
- I am getting lots of errors when building react native app in Xcode
- Search and highlight text of current text in PDFKit Swift
- Flatlist Sometimes Capped at 10 Items Bug
- Is there any way to page transition in react native (stack navigation)
- Screen inside Stack.Navigator not visible in React-Native
- React Native stopwatch implementation slow on iOS
Related Questions in DJOSER
- unable to create user account
- Djoser, does not send email, I do not know what else to do
- 'Settings' object has no attribute 'PASSWORD_RESET_CONFIRM_URL'
- Djoser 'users/me' endpoint only shows login_field and user_id field
- Django Djoser not working in production return 405 using react as frontend
- Getting the Djoser token
- Connection Refused Error: [Errno 111] Connection refused - Getting error for Mailtrap SMTP
- Backend not working after pulling a commit from history that worked
- CSRF cookie not set using Django rest framework, with frontend, react and axios
- Make user activation ApiView open DRF
- 400 Bad Request: Djoser built-in create user using django Signals
- How to dynamically set the access token expiration in Django Rest Framework Simple JWT?
- Djoser override UserCreateSerializer not creating model instance
- Django & Djoser - AttributeError: 'NoneType' object has no attribute 'is_active' when registering a new user
- Djoser UserViewSet, getting 401 Unauthorized `as_view("get": "list")`
Related Questions in REACT-NATIVE-LINKING
- Add custom library to React Native Modules NPM Package
- How to create-react-native-library?
- React Native SMS Linking override draft message
- React Native: Deep link handler doesn't fire on Pixel 6
- The OAuth response flow failed
- How do I open the deep link in mobile browser rather than mobile app in react native
- React Native iOS Linking with HTTP Scheme
- Open link in current window react-native Linking
- React Native View PDF
- how to check if the app is installed and open it or redirect to play store
- React Native Linking openURL : Use special characters like # and *
- Module not found: Can't resolve 'react-native' even though sqlite.core.js is in the ./node_modules/react-native-sqlite-storage/lib/
- DynamicLinks not working on first open React Native
- react native link number doesn't work after #
- How to open android gallery app from React Native app
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
Popular Tags
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
I integrated djoser and reactjs. so it's nearly similar like react native.It is may be usefull.
IN your django settings.py:
Urls.js
ActivateAccount.js: