mirror of
https://github.com/pocket-id/pocket-id.git
synced 2026-02-09 10:14:20 +00:00
18 lines
296 B
TypeScript
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
|
|
};
|