Auth
Description
Authentication pages, auth store helpers, and password-strength utilities for Enso UI.
Installation
Install the package:
yarn add @enso-ui/auth
This package is also available through the full enso-ui workspace bundle.
Features
- exports
PasswordStrengthfrom the root package entry - ships guest-only auth routes for login and password reset flows
- includes a Pinia auth store for login/logout state and intended-route handling
- registers the auth store bootstrap through
src/bulma/register.js
Usage
import { PasswordStrength } from '@enso-ui/auth';
API
PasswordStrength
Password entropy helper component used by reset and registration forms.
Import: @enso-ui/auth
Props:
password: string
auth()
Pinia auth store.
Import: @enso-ui/auth/src/pinia/auth.js
Actions:
login()setIntendedRoute(value)setIntendedPath(value)logoutState()logout()
register()
Bootstrap helper that initializes the auth store in the Bulma shell.
Import: @enso-ui/auth/src/bulma/register.js
Routes
Guest auth pages
Route names:
loginpassword.emailpassword.reset
Pages:
src/bulma/pages/auth/Login.vuesrc/bulma/pages/auth/password/EmailResetLink.vuesrc/bulma/pages/auth/password/Reset.vue
The route module guards all three routes with a guest redirect. The package also ships the shared Auth layout and the reusable AuthForm building block.
Backend Integration
The package expects the host Laravel application to expose the standard auth endpoints used by the form pages:
loginpassword.emailpassword.reset/api/logout
Depends On
Contributions
are welcome. Pull requests are great, but issues are good too.
Thank you to all the people who already contributed to Enso!