A
A
Andrey Okhotnikov2020-01-28 13:27:06
React Native
Andrey Okhotnikov, 2020-01-28 13:27:06

Asyncstorage missing data?

When authorizing a user, I save his token using Asyncstorage and use it in the future. But complaints began to come from users that after 2-3 days many fly out of the profile, most likely the token is deleted.
There are no time limits on the back, the site works similarly with the same api and everything is in order there.
Why can a token be deleted? Or what could be the reason?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Dimka Reactive, 2020-01-28
@raoffonom

In general, storing tokens in Async Storage is not safe. For security, for example, I use react-native-keychain . Use this love and nothing will be lost.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question