This repository has been archived on 2023-03-26. You can view files and clone it, but cannot push or open issues or pull requests.
Sphere/app/api/token.js

12 lines
260 B
JavaScript
Raw Normal View History

2016-02-06 12:42:19 +00:00
import { AsyncStorage } from 'react-native';
const STORAGE_KEY = 'CIRCLE_TOKEN';
export async function get() {
return await AsyncStorage.getItem(STORAGE_KEY);
}
export async function set(token) {
return await AsyncStorage.setItem(STORAGE_KEY, token);
}