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

13 lines
275 B
JavaScript

import { AsyncStorage } from 'react-native';
const STORAGE_KEY = 'CIRCLE_TOKEN';
async function get() {
return await AsyncStorage.getItem(STORAGE_KEY);
}
async function set(token) {
return await AsyncStorage.setItem(STORAGE_KEY, token);
}
export default { get, set};