Skip to content

Commit

Permalink
feat: github oauth disable session (#22)
Browse files Browse the repository at this point in the history
Fix `Login sessions require session support. Did you forget to use `express-session` middleware?`
  • Loading branch information
aahna-ashina committed Sep 22, 2023
1 parent f0e4f78 commit 7d13d01
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/pages/api/[passportId]/auth/github-callback.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ console.info('failurePath:', failurePath)
const handler = nc()
.get(
passport.authenticate('github', {
session: false,
failureRedirect: failurePath
}),
(req, res) => {
Expand Down

0 comments on commit 7d13d01

Please sign in to comment.