diff options
| author | Leonardo Bishop <me@leonardobishop.com> | 2025-08-15 19:20:48 +0100 |
|---|---|---|
| committer | Leonardo Bishop <me@leonardobishop.com> | 2025-08-15 19:20:48 +0100 |
| commit | 8f7dec8ba6b2f9bde01afd0a110596ebbd43e0ed (patch) | |
| tree | 7b4f203d92f4b99b1e98fac314415e293984196b /web/stores | |
| parent | 4697556cac819c47d068819b9fc9c3b4ea84e279 (diff) | |
Implement OIDC
Diffstat (limited to 'web/stores')
| -rw-r--r-- | web/stores/login-options.ts | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/web/stores/login-options.ts b/web/stores/login-options.ts new file mode 100644 index 0000000..fd97a75 --- /dev/null +++ b/web/stores/login-options.ts @@ -0,0 +1,22 @@ +import { defineStore } from "pinia"; + +interface LoginOption { + name: string; + identifier: string; + type: string; +} + +export const useLoginOptionsStore = defineStore('loginOptions', () => { + const loginOptions = ref([] as LoginOption[]) + const status = ref('idle' as 'idle' | 'pending') + + const setLoginOptions = (newLoginOptions: LoginOption[]) => { + loginOptions.value = newLoginOptions + } + + const setStatus = (newStatus: 'idle' | 'pending') => { + status.value = newStatus + } + + return {loginOptions, status, setLoginOptions, setStatus} +}) |
