Skip to content

Commit 3379046

Browse files
author
Kadi Kraman
committed
Update wording on token storage
1 parent 01cd930 commit 3379046

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

docs/token-storage.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
## Token Storage
22

3-
Once the user has successfully authenticated, you'll have a JWT and possibly a refresh token that need to be stored securely.
3+
Once the user has successfully authenticated, you'll have a JWT and possibly a refresh token that should be stored securely.
44

55
❗️ __Do not use Async Storage for storing sensitive information__
66

7-
Async Storage is the simplest method of persisting data across application launches. However, it is _unencrypted_ key-value store and so should not be used for token storage.
7+
Async Storage is the simplest method of persisting data across application launches in React Native. However, it is an _unencrypted_ key-value store and should therefore not be used for token storage.
88

99
__DO use Secure Storage__
1010

@@ -16,11 +16,11 @@ Keychain Services allows you to securely store small chunks of sensitive info fo
1616
### Android - Secure Shared Preferences
1717
Shared Preferences is the Android equivalent for a persistent key-value data store. Data in Shared Preferences is not encrypted by default. Encrypted Shared Preferences wraps the Shared Preferences class for Android, and automatically encrypts keys and values.
1818

19-
In order to use iOS Keychain services or Android Secure Shared Preferences, you either can write a bridge yourself or use a library which wraps them for you and provides a unified API at your own risk.
19+
In order to use iOS Keychain services or Android Secure Shared Preferences, you can either write a bridge yourself or use a library which wraps them for you and provides a unified API (at your own risk).
2020

2121
## Related OSS libraries
2222

23+
- [react-native-keychain](https://github.com/oblador/react-native-keychain)
2324
- [react-native-sensitive-info](https://github.com/mCodex/react-native-sensitive-info)
2425
- [redux-persist-sensitive-storage](https://github.com/CodingZeal/redux-persist-sensitive-storage)
25-
- [react-native-keychain](https://github.com/oblador/react-native-keychain)
2626
- [rn-secure-storage](https://github.com/talut/rn-secure-storage)

0 commit comments

Comments
 (0)