I
I
Ivan2021-02-25 11:40:00
Android
Ivan, 2021-02-25 11:40:00

What token storage options are used in mobile, react-native?

Moving from web to mobile using react-native. If I understand correctly, then there are no localsorage \ cookies familiar to the web in the mobile. How then can information be stored?

Example. I am making a request for a back to get an authorization token, where can I store this token and how can I reset it (for security or just the user has not been online for a very long time)?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
D
Denioo, 2021-02-25
@Denioo

Async storage https://reactnative.dev/docs/asyncstorage like local storage web

K
Kirill Makarov, 2021-03-13
@kirbi1996

Asyncstorage, or if you use mobx, mobx persist is very convenient. Although it seems to be on the redax

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question