13 lines
275 B
JavaScript
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};
|