Loading...
Loading...
Use when migrating from existing auth providers (Firebase, Cognito, Supabase, custom auth) to Auth0 - covers bulk user import, gradual migration strategies, code migration patterns, and JWT validation updates
npx skill4agent add auth0/agent-skills auth0-migrationauth0-quickstart| Pattern | Indicates |
|---|---|
| Firebase Auth |
| Existing auth hooks |
| Passport.js |
| OAuth/OIDC |
| Token-based auth |
| Auth routes |
I detected existing authentication in your project. Are you:
- Migrating to Auth0 (replace existing auth)
- Adding Auth0 alongside (keep both temporarily)
- Starting fresh (remove old auth, new Auth0 setup)
# Via Auth0 CLI
auth0 api post "jobs/users-imports" \
--data "connection_id=con_ABC123" \
--data "users=@users.json"auth0-reactauth0-nextjsauth0-vueauth0-angularauth0-expressauth0-react-nativehttps://YOUR_TENANT.auth0.com/https://YOUR_TENANT.auth0.com/.well-known/jwks.json// Support both providers during migration
const getUser = async () => {
// Try Auth0 first
const auth0User = await getAuth0User();
if (auth0User) return auth0User;
// Fall back to legacy provider
return await getLegacyUser();
};| Issue | Solution |
|---|---|
| Password hashes incompatible | Use Auth0 custom DB connection with lazy migration |
| Social logins don't link | Configure same social connection, users auto-link by email |
| Custom claims missing | Add claims via Auth0 Actions |
| Token format different | Update API to validate RS256 JWTs with Auth0 issuer |
| Session persistence | Auth0 uses rotating refresh tokens; update token storage |
| Users must re-login | Expected for redirect-based auth; communicate to users |
auth0-quickstartauth0-reactauth0-nextjsauth0-vueauth0-angularauth0-expressauth0-react-native