In this video I show - How you can add Authentication to your NextJS app using Auth0. You can integrate Auth0 and NextJS really fast and let it handle the Authentication and you can focus on your project !
Auth0 provides both Email-Pass & Social OAuth Authentication as default.
In Auth0 Settings 📌:
Allowed Callback URLs: http://localhost:3000/api/auth/callback
Allowed Logout URLs: http://localhost:3000/
Environment File Variables 📌:
AUTH0_SECRET=
AUTH0_BASE_URL= http://localhost:3000
AUTH0_ISSUER_BASE_URL="https://"
AUTH0_CLIENT_ID=
AUTH0_CLIENT_SECRET=
Command to get AUTH0_SECRET 📌:
node -e "console.log(crypto.randomBytes(32).toString('hex'))"
Loved the video ? You can share and tag me on 🧡:
👉 Twitter - @saumya4real - / saumya4real
👉 LinkedIn - / saumya66
Hi there! New to my Channel ? If so, here's what you need to know - It is the place where I share my journey with the you towards my goals related to Computer Science , Programming, Productivity , Life and above all learning, improving & building awesome stuff .
Subscribe to the channel and let's keep learning and getting better !
👨💻 Github : https://github.com/saumya66 ✔
📚 Personal Site : https://www.saumyanayak.tech/
💙 Twitter Handle : / saumya4real
☑️ LinkedIn Profile : / saumya66
✍ Medium Blog : / saumyanayak
📙 Hashnode Blog : https://saumya.hashnode.dev/
💡 Dev.to Blog : https://dev.to/saumya66
Relevant Video Tags :