Answers for "add and get tokens to securestore expo"

0

add and get tokens to securestore expo

import {SecureStore} from 'expo';

async function saveToken(val){
	await SecureStore.setItemAsync('secure_token',val);
}

async function getToken(key){
	const token = await SecureStore.getItemAsync(key);
  	return token
}
Posted by: Guest on August-03-2021

Code answers related to "Javascript"

Browse Popular Code Answers by Language