Full guide for authentication with Next 14 + NextAuth 4 + Strapi v4 using Google and credentials provider (email + password).
This is the github repo for a series of articles on dev.to.
The repo contains several phases that are saved inside branches:
- setup
- basicgoogleprovider
- callbacksForGoogleProvider
- customlogin
- credentialssignin
- credentialssignup
- emailconfirmation
- forgotpassword
- changeusername
- changepassword
The main branch is the finished example of all the branches merged.