Modules
Authentication pages
Login, register and forgot password on an editorial split screen, with social sign-in, passkeys and demo access.
/login, /register and /forgot-password use the auth layout: a sticky AppBrandPanel (lg+) always rendered in the light theme, and a form column that takes the whole screen below lg. Each page renders AppAuthCard and starts with AppAuthSocial. How the session works and how to replace it is in Authentication.
Files
File | Role |
|---|---|
layouts/auth.vue | The split screen: AppBrandPanel with the headline of each page, and the form column. |
pages/login.vue | Login with remember me, caps lock warning and “Try the demo”. |
pages/register.vue | Register with password strength and terms. |
pages/forgot-password.vue | Reset with mail app links and a resend countdown. |
config/auth.config.ts | Providers, passkeys, legal links, panel highlights, demo credentials, mail apps and the resend delay. |
composables/useSocialSignIn.ts | Signs in the demo user from a provider. |
Configuration
AUTH_PROVIDERS
Social providers with their custom:brand-* icon.
const AUTH_PROVIDERS: { id: AuthProvider; icon: string; }[]AUTH_LEGAL_LINKS
Links under the form.
const AUTH_LEGAL_LINKS: readonly [{ readonly id: "terms"; readonly href: "https://example.com/terms"; }, { readonly id: "privacy"; readonly href: "https://example.com/privacy"; }, { readonly id: "help"; …AUTH_PANEL_HIGHLIGHTS
Short facts in the footer strip of the brand panel (“Secure”, “Any device”). Each id reads its text from auth.hero.highlights.<id>; add, remove or reorder them here.
const AUTH_PANEL_HIGHLIGHTS: readonly [{ readonly id: "secure"; readonly icon: "shield-check"; }, { readonly id: "anyDevice"; readonly icon: "monitor-smartphone"; }]AUTH_DEMO_CREDENTIALS
The demo account shown in the tooltip of “Try the demo”.
const AUTH_DEMO_CREDENTIALS: { email: string; password: string; }AUTH_DEMO_ENTRY
When it is true, any protected page opened with ?demo signs in the demo user and drops the flag, so the live demo links of a sales page never stop at the login form. The starter sets it to false, so your project has no passwordless entry.
const AUTH_DEMO_ENTRY: true
AUTH_MAIL_APPS
Mail apps offered after a reset.
const AUTH_MAIL_APPS: readonly [{ readonly id: "gmail"; readonly href: "https://mail.google.com"; readonly icon: "custom:brand-google"; }, { readonly id: "outlook"; readonly href: "https://outlook.live…AUTH_RESEND_SECONDS
Seconds before the reset email can be sent again.
const AUTH_RESEND_SECONDS: 60
How it works
- The brand panel sets the headline of each page giant (
auth.hero.<login|register|forgotPassword>.title, picked by route name) over your logo mark drifting slowly in the background, and puts the lead andAUTH_PANEL_HIGHLIGHTSin its footer strip. The text is static and the motion stops with reduced motion. - Submit buttons are
inverse. Login puts “Forgot it?” in the password#label-append; register usesshow-strengthand aBaseCheckboxwithrules. - Signed-in users are sent away from these pages, unless the URL has
?preview(the menu links use it so you can see them). - The starter replaces
config/auth.config.tswith a version without company names.