Skip to content

useAuth Composable ​

File Information ​

  • Path: app/composables/auth/useAuth.ts
  • Purpose: Main authentication composable with login/logout functionality and secure token storage
  • Type: Authentication Composable

Overview ​

Main authentication composable with login/logout functionality and secure token storage

Features ​

Refer to the source composable file for detailed implementation and features.

Return Type ​

Refer to the composable source code for return type definitions. Composables use TypeScript for type-safe return values.

Parameters ​

Refer to the composable source code for parameter definitions. Composables use TypeScript for type-safe parameters.

Usage Example ​

typescript
import { useAuth } from '~/composables/auth/useAuth'

const { /* destructured return values */ } = useAuth()