원클릭으로
auth-setup
Setting up authentication with guards, sessions, registration, password reset, gates/policies, and vendor views in Rudder
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
메뉴
Setting up authentication with guards, sessions, registration, password reset, gates/policies, and vendor views in Rudder
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
SOC 직업 분류 기준
Setting up authentication with guards, sessions, registration, password reset, gates/policies, and vendor views in Rudder
Building MCP servers with tools, resources, prompts, decorators, and HTTP/stdio transports in Rudder
Creating Eloquent-style models, queries, relationships, casts, factories, and API resources in Rudder
Creating controller-returned views with route overrides, multi-framework support, and the html tagged template in Rudder
Building AI agents with tools, streaming, conversation memory, approval flows, and middleware in Rudder
Defining server and client tools with Zod schemas, approval gates, streaming yields, and modelOutput for Rudder AI agents
| name | auth-setup |
| description | Setting up authentication with guards, sessions, registration, password reset, gates/policies, and vendor views in Rudder |
| license | MIT |
| appliesTo | ["@rudderjs/auth"] |
| trigger | configuring guards/providers in `config/auth.ts`, vendoring auth views, wiring `Gate`/`Policy`, or working with password reset / email verification |
| skip | a route handler that just reads `Auth.user()` — no setup needed |
| metadata | {"author":"rudderjs"} |
Load when you're configuring guards/providers, vendoring auth views, wiring Gate/Policy authorization, or working with password reset / email verification. For depth, open the rule file matching your task.
| Task | Open |
|---|---|
Provider setup — install deps, config/auth.ts, register provider, make User authenticatable | rules/provider-setup.md |
Reading the current user — auth(), Auth facade, RequireAuth / RequireGuest middleware, login/logout endpoints | rules/guards-and-handlers.md |
Login / register UI — vendor:publish auth views, registerAuthRoutes, custom paths and view ids | rules/auth-views.md |
Authorization — Gate.define, model Policy classes, before callbacks | rules/gates-and-policies.md |
Email verification + password reset — MustVerifyEmail, verificationUrl, PasswordBroker | rules/email-and-password-reset.md |
SessionGuard instances per call. Never cached — cached guards leak _user across requests.auth() helper — Laravel-style accessor returning the request-scoped AuthManager via AsyncLocalStorage.Auth facade — Auth.user(), Auth.check(), etc. — static class that proxies to currentAuth().AuthMiddleware auto-installs on the web group only. API routes are stateless by default; use RequireBearer() + scope(...) (passport) for token auth per-route.SessionGuard.user() soft-fails — returns null (not throw) when there's no ALS context, matching Laravel's Auth::user() semantics.@rudderjs/session and @rudderjs/hash are required peers. HashProvider must boot before AuthProvider (defaultProviders() orders this automatically).See playground/config/auth.ts, playground/app/Models/User.ts, playground/routes/web.ts, and playground/app/Views/Auth/.