Interface: ConfigureAuthRuntimeOptions
Runtime configuration for configureAuthRuntime (local mode).
Fields:
basePath: Auth route prefix (e.g.,/api/auth). Must match Auth.js config.baseUrl: Canonical URL (with protocol + domain) used for callbacks.cookieName: Session cookie name. Use__Secure-/__Host-prefixes in production.secret: Auth.js secret used for JWT signing and token hashing.sessionStrategy:'jwt' | 'database'to mirror Auth.js config.
⚠️ Security:
- Secrets must stay on the server; never expose to clients or version control.
baseUrlshould be HTTPS in production. HTTP is acceptable only for localhost.cookieNamewith__Secure-prefix requires HTTPS;__Host-requires HTTPS + no domain/path.
Edge cases:
basePathmismatches cause Robo's router to 404 Auth routes.sessionStrategymust align with adapter configuration (JWT vs database sessions).
See
- configureAuthRuntime
- AuthConfig from
@auth/core
Properties
basePath
basePath: string;
baseUrl
baseUrl: string;
cookieName
cookieName: string;
secret
secret: string;
sessionStrategy
sessionStrategy: "jwt" | "database";