Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

authservice Google/Facebook #1

Open
Upsetmania opened this issue Jun 23, 2020 · 2 comments
Open

authservice Google/Facebook #1

Upsetmania opened this issue Jun 23, 2020 · 2 comments

Comments

@Upsetmania
Copy link

hello, can you show me how oauth google and facebook work? because the code is missing thank you very much

@Upsetmania
Copy link
Author

hi, a little help would be really great ;)

@doriandevtech
Copy link

Here are the three steps you need to follow to resolve your issue:

  1. Implement Google auth using @nestjs/passport and passport-google-auth (other providers are very similar).
  2. Once redirected back to the app, issue a JWT token, so the app can manage the user’s session.
  3. Protect REST and GraphQL endpoints with a JWT strategy.

Here is a link that might help you : https://javascript.plainenglish.io/oauth2-in-nestjs-for-social-login-google-facebook-twitter-etc-8b405d570fd2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants