Skip to content
This repository has been archived by the owner on Nov 7, 2023. It is now read-only.

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
emeraldsanto authored Mar 1, 2020
1 parent 48089cd commit 1e7a68b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,12 +52,12 @@ import EncryptedStorage from 'react-native-encrypted-storage';
```js
const storeUserSession = async () => {
try {
await EncryptedStorage.setItem('user_session', {
await EncryptedStorage.setItem('user_session', JSON.stringify({
username : 'emeraldsanto',
age : 21,
languages : ['fr', 'en', 'de'],
token : 'ACCESS_TOKEN'
});
}));

// Congrats! You've just stored your first value!
} catch (error) {
Expand Down

0 comments on commit 1e7a68b

Please sign in to comment.