I am trying to get the users access token on the server using the command below like it says in the docs, I am currently using stateless mode with a cognito social provider. I am using Next.js v15.5.6 and I have tried using both the bearer plugin and the nextCookies plugin.
My flow is home page ->
authClient.signIn.social({ provider: "cognito" })
authClient.signIn.social({ provider: "cognito" })
which redirects me to the home page -> then i go to my (authenticated) routes which has the get access token in the
layout
layout
and i get an account not found error.
is this not possible in stateless mode. Thank you for any help