neptune-privacy/src/composables/useAuthRouting.ts

24 lines
393 B
TypeScript
Raw Normal View History

2025-11-27 00:14:54 +07:00
import { useAuthStore } from '@/stores'
export function useAuthRouting() {
const authStore = useAuthStore()
const goToCreate = () => {
authStore.setState('create')
}
const goToRecover = () => {
authStore.setState('recovery')
}
const goBackToWelcome = () => {
authStore.setState('welcome')
}
return {
goToCreate,
goToRecover,
goBackToWelcome,
}
}