NeonN
Neon3w ago
2 replies
efficient-indigo

Error 404 generated when working with "await authClient.auth.getSession()"

I couldn't use the following code example until now because it produced a 404 error status:

import { createAuthClient } from '@neondatabase/neon-js/auth';
window.authClient = createAuthClient('https://*****.aws.neon.tech/neondb/auth');

// error 404: https://*****.aws.neon.tech/neondb/auth/auth/get-session
console.log(await authClient.auth.getSession());

please fix it soon.
Was this page helpful?