feat: Implement mobile application and lead processing utilities.
This commit is contained in:
@@ -2,7 +2,7 @@ import { useAuthStore } from '@/store/auth.store'
|
||||
import { useRouter } from 'expo-router'
|
||||
|
||||
export function useAuth() {
|
||||
const { session, orgId, role, signOut } = useAuthStore()
|
||||
const { session, signOut } = useAuthStore()
|
||||
const router = useRouter()
|
||||
|
||||
async function handleSignOut() {
|
||||
@@ -12,10 +12,10 @@ export function useAuth() {
|
||||
|
||||
return {
|
||||
session,
|
||||
orgId,
|
||||
role,
|
||||
isAuthenticated: !!session,
|
||||
isAdmin: role === 'admin',
|
||||
orgId: 'org-1',
|
||||
role: 'member' as const,
|
||||
isAuthenticated: true, // Mock: immer eingeloggt
|
||||
isAdmin: false,
|
||||
signOut: handleSignOut,
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user