auth0
Implements Auth0 authentication in Next.js applications, enabling secure user management and role-based access control.
Install this skill
Security score
The auth0 skill was audited on Feb 9, 2026 and we found 19 security issues across 4 threat categories. Review the findings below before installing.
Categories Tested
Security Issues
Template literal with variable interpolation in command context
| 187 | message: `Hello ${session?.user.name}` |
Template literal with variable interpolation in command context
| 209 | Authorization: `Bearer ${accessToken}` |
Template literal with variable interpolation in command context
| 241 | api.idToken.setCustomClaim(`${namespace}/roles`, event.authorization.roles) |
Template literal with variable interpolation in command context
| 242 | api.accessToken.setCustomClaim(`${namespace}/roles`, event.authorization.roles) |
Fetch to external URL
| 207 | const response = await fetch('https://api.example.com/data', { |
Access to .env file
| 21 | # .env.local |
External URL reference
| 23 | AUTH0_BASE_URL='http://localhost:3000' |
External URL reference
| 24 | AUTH0_ISSUER_BASE_URL='https://your-tenant.auth0.com' |
External URL reference
| 34 | 2. Set Allowed Callback URLs: `http://localhost:3000/auth/callback` |
External URL reference
| 35 | 3. Set Allowed Logout URLs: `http://localhost:3000` |
External URL reference
| 36 | 4. Set Allowed Web Origins: `http://localhost:3000` |
External URL reference
| 207 | const response = await fetch('https://api.example.com/data', { |
External URL reference
| 227 | AUTH0_AUDIENCE='https://api.example.com' |
External URL reference
| 239 | const namespace = 'https://myapp.com' |
External URL reference
| 256 | return session.user['https://myapp.com/roles'] || [] |
External URL reference
| 280 | const roles = session?.user['https://myapp.com/roles'] || [] |
External URL reference
| 301 | audience: 'https://api.example.com', |
External URL reference
| 413 | acr_values: 'http://schemas.openid.net/pape/policies/2007/06/multi-factor' |
External URL reference
| 432 | picture: 'https://example.com/avatar.png' |