heresy / angular2-social-login-example

angular2-social-login Example
13 stars 17 forks source link

How to authorize the user to protected routes in backend using the access token #18

Open deepakparamesh opened 6 years ago

deepakparamesh commented 6 years ago

Hi, this is not an error or bug, this issue is raised to get clarified. I want know how to authorize the user will be allowed to access the protected routes.

In passport.js implementation. I can authenticate the user using

exports.googleAuthLogin = passport.authenticate('google', { failureRedirect: '/', });

but how to provide access or authenticate the user by using this front end module ?