I after update package.jsonencountered this error in the project
I get this error when I run the project:
import { serverAuth$ } from '@builder.io/qwik-auth'
import type { Provider } from '@auth/core/providers'
import Keycloak from '@auth/core/providers/keycloak'
export const { onRequest, useAuthSession, useAuthSignin, useAuthSignout } = serverAuth$(
({ env }) => ({
secret: env.get("AUTH_SECRET"),
trustHost: true,
callbacks: {
async session({
session,
token,
}) {
session.user.guid = token.sub
return session
}
},
providers: [
] as Provider[],
})
);



With
[email protected], I get it to work by setting theNEXTAUTH_URL={host}/api/auth