File tree Expand file tree Collapse file tree 1 file changed +3
-5
lines changed Expand file tree Collapse file tree 1 file changed +3
-5
lines changed Original file line number Diff line number Diff line change @@ -345,8 +345,7 @@ const result = await payload.login({
345
345
email: ' dev@payloadcms.com' ,
346
346
password: ' rip' ,
347
347
},
348
- req: req, // pass a Request object to be provided to all hooks
349
- res: res, // used to automatically set an HTTP-only auth cookie
348
+ req: req, // optional, pass a Request object to be provided to all hooks
350
349
depth: 2 ,
351
350
locale: ' en' ,
352
351
fallbackLocale: false ,
@@ -384,8 +383,7 @@ const result = await payload.resetPassword({
384
383
password: req .body .password , // the new password to set
385
384
token: ' afh3o2jf2p3f...' , // the token generated from the forgotPassword operation
386
385
},
387
- req: req, // pass a Request object to be provided to all hooks
388
- res: res, // used to automatically set an HTTP-only auth cookie
386
+ req: req, // optional, pass a Request object to be provided to all hooks
389
387
})
390
388
```
391
389
@@ -399,7 +397,7 @@ const result = await payload.unlock({
399
397
// required
400
398
email: ' dev@payloadcms.com' ,
401
399
},
402
- req: req, // pass a Request object to be provided to all hooks
400
+ req: req, // optional, pass a Request object to be provided to all hooks
403
401
overrideAccess: true ,
404
402
})
405
403
```
You can’t perform that action at this time.
0 commit comments