๐Ÿ†‚๐Ÿ…ต๐Ÿ…ฒ SPACEFLAKE
๐Ÿ†‚๐Ÿ…ต๐Ÿ…ฒ SPACEFLAKE
XXata
Created by ๐Ÿ†‚๐Ÿ…ต๐Ÿ…ฒ SPACEFLAKE on 8/9/2024 in #help
Unable to log in to prod branch main after using PR based workflow
Yes. Thank you @kostas โค๏ธ. I suspected it was something with the env variables. I didnยดt quite understand how it was set up. Now it works as expected.
4 replies
XXata
Created by ๐Ÿ†‚๐Ÿ…ต๐Ÿ…ฒ SPACEFLAKE on 8/9/2024 in #help
Unable to log in to prod branch main after using PR based workflow
This is the error i got from the callback. No branch was passed to the client constructor. Using default branch main. You can set the branch with the environment variable XATA_BRANCH or by passing the branch option to the client constructor. [next-auth][error][OAUTH_CALLBACK_ERROR] https://next-auth.js.org/errors#oauth_callback_error State cookie was missing. { error: TypeError: State cookie was missing. at Object.use (/var/task/node_modules/next-auth/core/lib/oauth/checks.js:111:23) at oAuthCallback (/var/task/node_modules/next-auth/core/lib/oauth/callback.js:89:25) at process.processTicksAndRejections (node:internal/process/task_queues:95:5) at async Object.callback (/var/task/node_modules/next-auth/core/routes/callback.js:52:11) at async AuthHandler (/var/task/node_modules/next-auth/core/index.js:208:28) at async NextAuthApiHandler (/var/task/node_modules/next-auth/next/index.js:22:19) at async NextAuth._args$ (/var/task/node_modules/next-auth/next/index.js:108:14) at async K (/var/task/node_modules/next/dist/compiled/next-server/pages-api.runtime.prod.js:20:16853) at async U.render (/var/task/node_modules/next/dist/compiled/next-server/pages-api.runtime.prod.js:20:17492) at async r3.runApi (/var/task/node_modules/next/dist/compiled/next-server/server.runtime.prod.js:17:43997) { name: 'OAuthCallbackError', code: undefined }, providerId: 'discord', message: 'State cookie was missing.' } What am I missing?
4 replies