Authentication
Nuxflare Auth
Nuxflare Pro ships with Nuxflare Auth, an independent authentication server built on OpenAuth.js. It can secure any frontend or backend and is deployed to auth.YOUR-DOMAIN.com
.
Infrastructure
- Cloudflare Worker:
- Configured in
infra/auth.ts
with an Assets binding for the frontend. - Handles auth logic in
packages/functions/src/auth.ts
using OpenAuth.js.
- Configured in
- Nuxt Frontend:
Located in thepackages/auth-frontend
package, it includes UI for:- Login
- Signup
- Forgot Password
Key Features
- Social Logins: Google and GitHub authentication.
- Code-based login
- Email/password login
- Password recovery
- Email verification
- Extendable: Easily add new authentication methods.
Team Authentication
Team authentication is managed within the app package: packages/app
. It includes:
- Team Creation – Users can create teams and manage members.
- Team Switcher – Users can switch between multiple teams.
- Invites & User Management – Invite users, manage roles, and remove members.