add and get tokens to securestore expo

Solutions on MaxInterview for add and get tokens to securestore expo by the best coders in the world

showing results for - "add and get tokens to securestore expo"
Andrés
10 Apr 2018
1import {SecureStore} from 'expo';
2
3async function saveToken(val){
4	await SecureStore.setItemAsync('secure_token',val);
5}
6
7async function getToken(key){
8	const token = await SecureStore.getItemAsync(key);
9  	return token
10}
11