SR
I completely agree with you, but I haven't included that portion of the example because everyone saves their users in the database differently. Even so, the complete code may be found in the GitHub repository, which I have contributed. You are welcome to look through the repository. https://github.com/SSazzadur/nextjs-google-auth