better-auth-integration
Integrates Better Auth for JWT-based authentication in Next.js and FastAPI, managing user sessions and protected routes.
Install this skill
Security score
The better-auth-integration skill was audited on Feb 25, 2026 and we found 23 security issues across 3 threat categories, including 2 high-severity. Review the findings below before installing.
Categories Tested
Security Issues
Direct command execution function call
| 816 | existing_user = session.exec( |
Direct command execution function call
| 859 | user = session.exec( |
Template literal with variable interpolation in command context
| 941 | Authorization: `Bearer ${session.token}`, |
Template literal with variable interpolation in command context
| 956 | const response = await fetch(`${this.baseUrl}${endpoint}`, { |
Template literal with variable interpolation in command context
| 963 | throw new Error(error.detail || `HTTP ${response.status}`); |
Template literal with variable interpolation in command context
| 971 | return this.request<Task[]>(`/api/${userId}/tasks`); |
Template literal with variable interpolation in command context
| 975 | return this.request<Task>(`/api/${userId}/tasks`, { |
Template literal with variable interpolation in command context
| 982 | return this.request<Task>(`/api/${userId}/tasks/${taskId}`, { |
Template literal with variable interpolation in command context
| 989 | return this.request<Task>(`/api/${userId}/tasks/${taskId}/complete`, { |
Template literal with variable interpolation in command context
| 995 | return this.request<void>(`/api/${userId}/tasks/${taskId}`, { |
Access to .env file
| 49 | Create `frontend/.env.local`: |
Access to .env file
| 69 | baseURL: process.env.NEXT_PUBLIC_API_URL || "http://localhost:8000", |
Access to .env file
| 484 | Add to `backend/.env`: |
Access to .env file
| 524 | env_file = ".env" |
Access to .env file
| 924 | const API_BASE_URL = process.env.NEXT_PUBLIC_API_URL || "http://localhost:8000"; |
External URL reference
| 54 | NEXT_PUBLIC_API_URL=http://localhost:8000 |
External URL reference
| 57 | NEXTAUTH_URL=http://localhost:3000 |
External URL reference
| 69 | baseURL: process.env.NEXT_PUBLIC_API_URL || "http://localhost:8000", |
External URL reference
| 493 | CORS_ORIGINS=http://localhost:3000 |
External URL reference
| 517 | cors_origins: str = "http://localhost:3000" |
External URL reference
| 924 | const API_BASE_URL = process.env.NEXT_PUBLIC_API_URL || "http://localhost:8000"; |
External URL reference
| 1094 | - [Better Auth Documentation](https://better-auth.com/) |
External URL reference
| 1095 | - [FastAPI Security](https://fastapi.tiangolo.com/tutorial/security/) |
Install this skill with one command
/learn @maneeshanif/better-auth-integration