Initial commit
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
import type { ComputedRef, Ref } from 'vue'
|
||||
import type { AuthUser } from '~/stores/auth'
|
||||
|
||||
export type AuthMode = 'disabled' | 'mock' | 'userinfo'
|
||||
|
||||
export interface AuthClient {
|
||||
mode: AuthMode
|
||||
isEnabled: boolean
|
||||
isReady: Ref<boolean>
|
||||
isAuthenticated: ComputedRef<boolean>
|
||||
user: Ref<AuthUser | null>
|
||||
ensureInitialized: () => Promise<void>
|
||||
login: () => void | Promise<void>
|
||||
logout: () => void | Promise<void>
|
||||
}
|
||||
Reference in New Issue
Block a user