alepha@docs:~/docs/framework/packages/alepha/react$
cat auth.md | pretty
1 min read
Last commit:

#Alepha - React Auth

#Installation

Part of the alepha package. Import from alepha/react/auth.

npm install alepha

#Overview

Auth-related React components and hooks.

Features:

  • Auth state hooks (useAuth)

Route protection is done with use: [$secure(...)] on the page or action, not with wrapper components.

#API Reference

#React Hooks

  • useAuth - Reads the current user and exposes login() / logout().