From 27cfe775ddb940e30c9d84d236843345e2a79a9e Mon Sep 17 00:00:00 2001 From: Ilham Saputrajati Date: Sat, 6 Sep 2025 12:25:51 +0700 Subject: [PATCH] docs: missing comma in custom-strategies example (#13701) Fix missing comma at custom-strategies example --- docs/authentication/custom-strategies.mdx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/authentication/custom-strategies.mdx b/docs/authentication/custom-strategies.mdx index eaf163123..e77f80ac6 100644 --- a/docs/authentication/custom-strategies.mdx +++ b/docs/authentication/custom-strategies.mdx @@ -49,7 +49,7 @@ export const Users: CollectionConfig = { strategies: [ { name: 'custom-strategy', - authenticate: ({ payload, headers }) => { + authenticate: async ({ payload, headers }) => { const usersQuery = await payload.find({ collection: 'users', where: { @@ -66,7 +66,7 @@ export const Users: CollectionConfig = { // Send the user with the collection slug back to authenticate, // or send null if no user should be authenticated user: usersQuery.docs[0] ? { - collection: 'users' + collection: 'users', ...usersQuery.docs[0], } : null,