Tag: next-auth
-
i have an isuue regrading i am not able to get token from cookie. i am making a next js project with next auth and hasura graphql
0 I’m encountering an issue regarding the retrieval of a token from a cookie. I’m currently working on a Next.js project using NextAuth and Hasura GraphQL. With NextAuth, I’m utilizing credential providers for login and token generation, and the generated token is stored in a cookie. However, when it comes to setting up the Apollo…
-
I can’t read session when I pass from next-auth to nodejs
0 I have Next.js project where I use next-auth and I use node.js for the server. when user log in system, their session should pass to nodejs like this: this code is part of […nextAuth].ts events: { async signIn({ user }: any) { const { PASS_SESSION_SERVER } = Operation.Mutations; const { data } = await…
-
Error: “An issue happened while applying the transaction”. Grafbase problem on production
0 When I try to create a server I get an error. The server is created but without any relation to the user. Everything works fine locally. The error only appears in production. Here’s my schemas: schema @auth( providers: [ { type: jwt, issuer: "nextauth", secret: "{{ env.NEXTAUTH_SECRET }}" } ] rules: [{ allow: private…
-
nextauth getServerSession() always returns null when trying to call within GraphQL Yoga context
0 I’m using Nextjs ^13.4 with GraphQL Yoga & Apollo/client and Prisma. I’m trying to get the current user’s session in GraphQL Pothos, by forwarding the response of getServerSession() but its always null. If I call getServerSession() within a RSC, then I can see the session details. 1. apps/web/app/api/auth/[…nextauth]/options.ts export const authOptions: AuthOptions = {…