nestjs / nestjs/docs.nestjs.com

Add OAuth2 example for passport

Open
#75 33 comments 75 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

content type: example
Dominant language
TypeScript
Stars
1.4k
Forks
2.2k
Avg merge
3d 23h
Merged PRs (30d)
24

Description

I was trying to use the new Passport module in order to implement the whole OAuth2 Process (Google Login). However I was not sure how I am supposed to handle the callback where one would usually call passport.authenticate().

Can you add documentation which shows an OAuth2 login via Google (or some other provider)?

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reviewing the existing documentation for the new Passport module and its callback guidance, then compare how authentication examples are presented. Done means the docs include an OAuth2 Google-login example that explains how to handle the callback with passport.authenticate().

Written by the indexing model from the issue text.

Assessment

Domain
authentication, documentation
Issue type
Documentation
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.