diff --git a/docs/hooks/collections.mdx b/docs/hooks/collections.mdx index 7bc1fb6cf..f895a76ef 100644 --- a/docs/hooks/collections.mdx +++ b/docs/hooks/collections.mdx @@ -292,13 +292,11 @@ For auth-enabled Collections, this hook runs after successful `forgotPassword` o ```ts import { CollectionAfterForgotPasswordHook } from 'payload/types' -const afterLoginHook: CollectionAfterForgotPasswordHook = async ({ - req, // full express request - user, // user being logged in - token, // user token -}) => { - return user -} +const afterForgotPasswordHook: CollectionAfterForgotPasswordHook = async ({ + args, // arguments passed into the operation + context, + collection, // The collection which this hook is being run on +}) => {...} ``` ## TypeScript