Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

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
}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #add #tokens #securestore #expo
ADD COMMENT
Topic
Name
6+9 =