mpc75
mpc75

Reputation: 989

React Native | Is it safe to store a json web token in state and async storage?

I'm following a React Native course on Udemy and the course recommends storing the json web token in redux state and async storage for authentication/authorization. I was just wondering if this is secure enough? Or if there is a recommended alternative that is more secure or industry standard.

Upvotes: 0

Views: 374

Answers (1)

Vahid Alimohamadi
Vahid Alimohamadi

Reputation: 5858

if you are using refreshToken & accessToken and they have expiration time, yes it is high percent safe. But i prefer realm personally.

Upvotes: 1

Related Questions