diff --git a/api.planx.uk/modules/auth/middleware.ts b/api.planx.uk/modules/auth/middleware.ts index ee11d02c86..0548197f63 100644 --- a/api.planx.uk/modules/auth/middleware.ts +++ b/api.planx.uk/modules/auth/middleware.ts @@ -143,7 +143,9 @@ export const useRoleAuth: UseRoleAuth = if (!isAuthorised) { console.error( - `Authentication error: User ${userId} does have have any of the roles ${authRoles} which are required to access ${req.path}`, + `Authentication error: User ${userId} does have have any of the roles [${authRoles.join( + ", ", + )}] which are required to access ${req.path}`, ); return next({ status: 403, diff --git a/api.planx.uk/modules/auth/strategy/google.ts b/api.planx.uk/modules/auth/strategy/google.ts index f9c6632afd..83835af038 100644 --- a/api.planx.uk/modules/auth/strategy/google.ts +++ b/api.planx.uk/modules/auth/strategy/google.ts @@ -16,7 +16,7 @@ export const googleStrategy = new GoogleStrategy( if (!jwt) { return done({ status: 404, - message: `User (${email}) not found.Do you need to log in to a different Google Account?`, + message: `User (${email}) not found. Do you need to log in to a different Google Account?`, } as any); }