mirror of
https://github.com/Stef-00012/Zipline-Android-App.git
synced 2025-05-11 18:35:58 +02:00
15 lines
268 B
TypeScript
15 lines
268 B
TypeScript
import * as SecureStore from "expo-secure-store";
|
|
|
|
export function set(key: string, value: string) {
|
|
SecureStore.setItem(key, value);
|
|
}
|
|
|
|
export function get(key: string) {
|
|
const result = SecureStore.getItem(key);
|
|
|
|
if (result) {
|
|
return result;
|
|
}
|
|
|
|
return null;
|
|
}
|