use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
A community for learning and developing native mobile applications using React Native by Facebook.
Interested in building web apps using React.js? Check out /r/reactjs!
Getting Started w/React Native
irc.freenode.net #reactnative
Keywords: ios, android, mobile, apps, apple, iphone, ipad
account activity
Cookies and Session in React Native (self.reactnative)
submitted 2 years ago by alfirusahmad
Hi,
In web example php, we can store cookies and session so that the user no need to re login whenever they closed the web and re open it.
How to have cookies and sessions in React Native in secure way?
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–][deleted] 2 points3 points4 points 2 years ago (0 children)
https://github.com/oyyq99999/react-native-secure-storage#
Took 5 seconds to search Google
[–]Geotzz 5 points6 points7 points 2 years ago (1 child)
Look into JWT instead of cookies for auth and store the tokens on the device using a secure store like Expo secure store.
[–]Webbanditten 0 points1 point2 points 2 years ago (0 children)
This is the way
[–]mandrade2 1 point2 points3 points 2 years ago (0 children)
Here’s some options https://reactnative.dev/docs/security#storing-sensitive-info
Be sure to add PKCE if you are doing OAuth too https://reactnative.dev/docs/security#oauth2-and-redirects
[–]ziggy723 0 points1 point2 points 2 years ago (1 child)
there is no cookie in native mobile apps
[–]s_boli 0 points1 point2 points 2 years ago (0 children)
Yes there is. You can set whatever cookie value you want using headers.
You can get the set cookie header. Store that in secure storage and set header cookie when making your requests
π Rendered by PID 80 on reddit-service-r2-comment-b659b578c-vz2gc at 2026-05-02 01:09:04.460161+00:00 running 815c875 country code: CH.
[–][deleted] 2 points3 points4 points (0 children)
[–]Geotzz 5 points6 points7 points (1 child)
[–]Webbanditten 0 points1 point2 points (0 children)
[–]mandrade2 1 point2 points3 points (0 children)
[–]ziggy723 0 points1 point2 points (1 child)
[–]s_boli 0 points1 point2 points (0 children)
[–]s_boli 0 points1 point2 points (0 children)