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 best solutions below
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
- Display images on Django Template Site
- Protractor did not run properly when using browser.wait, msg: "Wait timed out after XXXms"
- Django invalid literal for int() with base 10:
- Removing URL features from tokens in NLTK
- Django Noob URL to from Root Page to sub Page
- Django Admin tables not displaying correctly
- Django with chartkick
- Django urls.py not rendering correct template
- django form errors before submit
- django admin: custom app_index with context
- Display multiple models in one view in Django
- Unexpected NoReverseMatch error when using include() in urls patterns
- Search for a key in django.core.cache
- Django webapp (on an Apache2 server) hangs indefintely when importing nltk in views.py
- Django flush won't load fixtures
Related Questions in REACT-NATIVE
- React Native: detect if UIVisualEffectView is supported
- Prevent Chrome debugger from stealing focus in React Native
- React-native upload image to amazons s3
- react-native update NavigatorIOS component's props
- promise – can't find variable process
- Using React Native within existing iOS app for some views only
- What is a good approach to building and distributing a React Native iOS component that extends iOS functionality?
- error in xcode 6 "is not registered as a URL scheme. Please add it in your Info.plist"
- DeviceEventEmitter stops emitting events to application when screen locked
- How to rename react-native entry file (index.ios.js)
- react-native component lifecycle methods not firing on navigation
- How to use comments in React
- react-native propagate changes in props through ListView and Navigator
- How do i use the iOS shake gesture with react native?
- TouchableHighlight won't accept press events while keyboard is open
Related Questions in DJOSER
- TypeError: Abstract base class containing model fields not permitted for proxy model 'TokenProxy'. when trying to makemigrations in Django
- curl: (7) Failed to connect to 127.0.0.1 port 8000: Connection refused
- Djoser password reset implementation
- Updating ManyToMany of a custom user DRF best practice
- Django Rest Framework Djoser - saving JWT tokens in httpOnly cookies
- How can I create an "Artist" instance from my Django model when an instance of a User class is created?
- How can I store the response from a third party API as instance in a Django model
- Djoser UserViewSet, getting 401 Unauthorized `as_view("get": "list")`
- Djoser override UserCreateSerializer not creating model instance
- Django & Djoser - AttributeError: 'NoneType' object has no attribute 'is_active' when registering a new user
- How to dynamically set the access token expiration in Django Rest Framework Simple JWT?
- 400 Bad Request: Djoser built-in create user using django Signals
- djoser reset password keeps returning 403 forbidden
- Django rest with djoser returns detail:invalid token on first login
- Django rest framework serializer.save() not saving to database and shows ConnectionAbortedError:
Related Questions in REACT-NATIVE-LINKING
- React Native Linking to facebook profile only opens current user's profile instead of given URL
- Add custom library to React Native Modules NPM Package
- import Undefined when try import my own module created with nativeModule (IOS - RN)
- create-react-native-app - eject does not create index.js
- Open link in current window react-native Linking
- How to do account activation through email using Djoser and React Native?
- React native link Ejecting
- How do I open the deep link in mobile browser rather than mobile app in react native
- The OAuth response flow failed
- Duplicate interface definition for class 'RCTBridge' error after react-native link
- react-native link only for one project (Android or iOS)
- React Native Link for React Native .60 +
- React Native: How to fix TypeError: null is not an object (evaluating 'TrackPlayer.STATE_NONE')?
- Unable to unlink library with react-native unlink
- React Native open Facebook page
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)
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?
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: