Contents Menu Expand Light mode Dark mode Auto light/dark, in light mode Auto light/dark, in dark mode Skip to content
AILA-Application
Light Logo Dark Logo
AILA-Application
  • Backend (FastAPI) Documentation
    • backend.api
      • backend.api.fast_api
      • backend.api.llm_pipeline
      • backend.api.models
      • backend.api.utils
    • backend.main
    • backend.cache_models
    • backend.crypt
      • backend.crypt.encrypt_decrypt
    • backend.database
      • backend.database.config
        • backend.database.config.config
        • backend.database.config.connection_engine
      • backend.database.core
        • backend.database.core.funcs
      • backend.database.daos
        • backend.database.daos.conversation_dao
        • backend.database.daos.user_dao
        • backend.database.daos.user_message_dao
      • backend.database.entities
        • backend.database.entities.conversations
        • backend.database.entities.messages
        • backend.database.entities.user
      • backend.database.helpers
        • backend.database.helpers.transactionManagement
  • Frontend Typescript Documentation
    • api/axios
    • App
    • components/Template
    • context/AuthContext
    • main
    • models/Types
    • pages/Chat
    • pages/Login
    • pages/Register
    • services/AuthService
Back to top
View this page

vite-project v0.0.0


Function: useAuth()¶

useAuth(): AuthContextType

Defined in: src/context/AuthContext.tsx:454

Hook to access AuthContextType.

Returns¶

AuthContextType

The current authentication context.

Remarks¶

Must be used within an AuthProvider. Throws an error otherwise.

Example¶

const { user, loginUser, logoutUser } = useAuth();
Copyright © 2025, Ioannis Katoikos
Made with Sphinx and @pradyunsg's Furo
On this page
  • Function: useAuth()
    • Returns
    • Remarks
    • Example