@kirejs/auth
v0.1.8
Published
Authentication directives for Kire.
Readme
@kirejs/auth
Authentication directives and helpers for Kire. Simplifies handling user states in your templates.
Features
- @auth / @guest: Conditionally render content based on authentication state.
- Role/Permission Checks: (If configured) Directives for checking user roles.
Installation
npm install @kirejs/auth
# or
bun add @kirejs/authUsage
@auth
<p>Welcome back, {{ user.name }}!</p>
@else
<a href="/login">Login</a>
@endLicense
MIT
