Initial commit from monorepo
This commit is contained in:
16
app/composables/useMockLogto.ts
Normal file
16
app/composables/useMockLogto.ts
Normal file
@@ -0,0 +1,16 @@
|
||||
export const useMockLogto = () => {
|
||||
return {
|
||||
isAuthenticated: ref(true),
|
||||
getIdTokenClaims: () => Promise.resolve({
|
||||
sub: 'mock-user-id-123',
|
||||
email: 'test@optovia.ru',
|
||||
username: 'testuser'
|
||||
}),
|
||||
signIn: (redirectUri: string) => {
|
||||
console.log('Mock signIn to:', redirectUri)
|
||||
},
|
||||
signOut: () => {
|
||||
console.log('Mock signOut')
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user