From 84d69af343d4383d37f70123c710b0df34307d81 Mon Sep 17 00:00:00 2001 From: Tobbe Lundberg Date: Sat, 30 Dec 2023 15:04:20 +0100 Subject: [PATCH] Fix dbAuth allowUserFields initialization syntax (#9780) --- .../dbAuth/setup/src/templates/api/functions/auth.ts.template | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/auth-providers/dbAuth/setup/src/templates/api/functions/auth.ts.template b/packages/auth-providers/dbAuth/setup/src/templates/api/functions/auth.ts.template index 20fde6db8f29..667c57a51337 100644 --- a/packages/auth-providers/dbAuth/setup/src/templates/api/functions/auth.ts.template +++ b/packages/auth-providers/dbAuth/setup/src/templates/api/functions/auth.ts.template @@ -179,7 +179,7 @@ export const handler = async ( // client when invoking a handler that returns a user (like forgotPassword // and signup). This list should be as small as possible to be sure not to // leak any sensitive information to the client. - allowedUserFields = ['id', 'email'], + allowedUserFields: ['id', 'email'], // Specifies attributes on the cookie that dbAuth sets in order to remember // who is logged in. See https://developer.mozilla.org/en-US/docs/Web/HTTP/Cookies#restrict_access_to_cookies