Skip to content

Commit

Permalink
example: update examples/passport.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
panva committed Feb 20, 2025
1 parent 162832b commit 2cd915e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/passport.ts
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ app.get('/', ensureLoggedIn('/login'), (req, res) => {
app.get(
'/login',
ensureLoggedOut('/logout'),
passport.authenticate(server.host),
passport.authenticate(server.host, { successRedirect: '/' }),
)

app.get('/logout', (req, res) => {
Expand Down

0 comments on commit 2cd915e

Please sign in to comment.