Skip to content

Commit b5d4064

Browse files
Update passport.md
Typo in Recipes/Passport/Logout Route
1 parent 130ca91 commit b5d4064

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

content/recipes/passport.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -372,7 +372,7 @@ async login(@Request() req) {
372372

373373
#### Logout route
374374

375-
To log out, we can create an additional route that invokes `res.logout()` to clear the user's session. This is a typical approach used in session-based authentication, but it does not apply to JWTs.
375+
To log out, we can create an additional route that invokes `req.logout()` to clear the user's session. This is a typical approach used in session-based authentication, but it does not apply to JWTs.
376376

377377
```typescript
378378
@UseGuards(LocalAuthGuard)

0 commit comments

Comments
 (0)