Loading...
FastStaq ships a complete authentication system so you never have to build sign-in from scratch. This article explains how it works and where to configure it.
JWT_ACCESS_EXPIRY); refresh tokens last longer (JWT_REFRESH_EXPIRY, default 7 days).tokenVersion lets you revoke every session at once (used by password reset, suspend, and "log out everywhere").JWT_SECRET signs tokens; optional rotation is supported with JWT_SECRET_CURRENT / JWT_SECRET_PREVIOUS.COOKIE_DOMAIN unset.example.com, API on api.example.com), set COOKIE_DOMAIN=.example.com or the front-end middleware cannot see the cookie and you get a /dashboard -> /login redirect loop.COOKIE_SECURE=true and an appropriate COOKIE_SAMESITE in production.ENCRYPTION_KEY.COMPLIANCE_REQUIRE_MFA_FOR_ADMINS (production) or ADMIN_2FA_ENFORCED.ENABLE_PASSWORD_BREACH_CHECK=true rejects known-breached passwords via the Have I Been Pwned k-anonymity API.MAGIC_LINK_AUTO_PROVISION controls whether magic links can create accounts.Open a support ticket with the auth flow and any error message.
Sign in to leave feedback on this article.