1
0
mirror of https://github.com/pocket-id/pocket-id.git synced 2026-02-09 10:14:20 +00:00
Files
pocket-id/frontend/src/lib/stores/client-secret-store.ts
Elias Schneider eaff977b22 initial commit
2024-08-12 11:24:22 +02:00

18 lines
296 B
TypeScript

import { writable } from 'svelte/store';
const clientSecretStore = writable<string | null>(null);
const set = (user: string) => {
clientSecretStore.set(user);
};
const clear = () => {
clientSecretStore.set(null);
};
export default {
subscribe: clientSecretStore.subscribe,
set,
clear
};