You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/runtime/server/services/authjs/nuxtAuthHandler.ts
+4-4Lines changed: 4 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -120,7 +120,7 @@ export async function getServerSession(event: H3Event) {
120
120
// This call gives it a chance to load + initialize the variable. If it fails we still throw. This edge-case has happened to user matijao#7025 on discord.
throwcreateError({statusCode: 500,statusMessage: 'Tried to get server session without setting up an endpoint to handle authentication (see https://github.com/sidebase/nuxt-auth#quick-start)'})
123
+
throwcreateError({statusCode: 500,message: 'Tried to get server session without setting up an endpoint to handle authentication (see https://github.com/sidebase/nuxt-auth#quick-start)'})
124
124
}
125
125
}
126
126
@@ -205,7 +205,7 @@ async function createRequestForAuthjs(
throwcreateError({statusCode: 400,statusMessage: `Invalid path used for auth-endpoint. Supply either one path parameter (e.g., \`/api/auth/session\`) or two (e.g., \`/api/auth/signin/github\` after the base path (in previous examples base path was: \`/api/auth/\`. Received \`${params}\``})
238
+
throwcreateError({statusCode: 400,message: `Invalid path used for auth-endpoint. Supply either one path parameter (e.g., \`/api/auth/session\`) or two (e.g., \`/api/auth/signin/github\` after the base path (in previous examples base path was: \`/api/auth/\`. Received \`${params}\``})
239
239
}
240
240
241
241
const[unvalidatedAction,providerId]=params
242
242
243
243
// Get TS to correctly infer the type of `unvalidatedAction`
throwcreateError({statusCode: 400,statusMessage: `Called endpoint with unsupported action ${unvalidatedAction}. Only the following actions are supported: ${SUPPORTED_ACTIONS.join(', ')}`})
246
+
throwcreateError({statusCode: 400,message: `Called endpoint with unsupported action ${unvalidatedAction}. Only the following actions are supported: ${SUPPORTED_ACTIONS.join(', ')}`})
0 commit comments