Skip to content

Google OAuth using Express and Next JS with TypeScript. Styled with TailwindCSS and animated with Framer Motion.

Notifications You must be signed in to change notification settings

AkashSDas/oauth-with-express

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 

Repository files navigation

oauth-with-express

Concept

Social login is a 2 step communication.

  • Show consent screen to the user, if user accepts then auth provider sends a token
  • We ask for user info with that token and the auth provider gives the user info
  • Then we save the required info if user is signing up and complete the user registeration or else in case login, we just log the user in the app

Getting started

.env file example

MONGODB_CONNECT_URL=

GOOGLE_OAUTH_CLIENT_ID=
GOOGLE_OAUTH_CLIENT_SECRET=
GOOGLE_OAUTH_CALLBACK_URL=http://localhost:8000/api/auth/google/callback

COOKIE_SESSION_SECRET=

About

Google OAuth using Express and Next JS with TypeScript. Styled with TailwindCSS and animated with Framer Motion.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published