Monday 17 June 2019

Combine JWT and Google Oauth

I have a mern stack project in which there is two sign in methods:Sign in with googleSign with email and passwordIn backend I have a route which is accessible to only authenticated user. Using JWT strategy, I am able to access that route after I login using email and password. And using google, I am able to get accessToken. So now, how to use accessToken given by google to get access to that protected route?#nodejs #passportjs

Submitted June 17, 2019 at 12:04PM by bhuwanadhikari

No comments:

Post a Comment