Auth module: how your users log in — email routes, Google OAuth, and token helpers. Connecting a third-party social account to an already logged-in user is a different concern and lives in naystack/socials.
naystack/socials
// Email authimport { setupEmailAuth, getContext, checkAuthStatus, getRefreshToken } from "naystack/auth";// Google OAuthimport { setupGoogleAuth } from "naystack/auth";// Server-Component AuthWrapper (fetches the token during SSR)import { AuthWrapper } from "naystack/auth";// End a custom login route the way the built-in ones doimport { getTokenizedResponse } from "naystack/auth"; Copy
// Email authimport { setupEmailAuth, getContext, checkAuthStatus, getRefreshToken } from "naystack/auth";// Google OAuthimport { setupGoogleAuth } from "naystack/auth";// Server-Component AuthWrapper (fetches the token during SSR)import { AuthWrapper } from "naystack/auth";// End a custom login route the way the built-in ones doimport { getTokenizedResponse } from "naystack/auth";
Auth module: how your users log in — email routes, Google OAuth, and token helpers. Connecting a third-party social account to an already logged-in user is a different concern and lives in
naystack/socials.Example