stack
stack copied to clipboard
Connected Accounts do not work
🐛 Bug Report
Title:
Google OAuth “connect” flow never completes and redirects back to /handler/sign-in without errors
Environment
- Stack Auth SDK version:
@stackframe/stackv2.8.6 - Next.js version: 15.2.4
Reproduction Steps
- Install and configure Stack Auth per the docs
- In
stack.tsyou only have:import "server-only"; import { StackServerApp } from "@stackframe/stack"; export const stackServerApp = new StackServerApp({ tokenStore: "nextjs-cookie", oauthScopesOnSignIn: { google: ["https://www.googleapis.com/auth/business.manage"], }, }); - Protect via middleware.ts
- Create account with email
- Sign in with google with the same email
I can't reproduce the problem. Are you sure it is caused by the connected account? Is it maybe caused by wrong middleware patterns?
Seems the PR related to this was merged and closed. Closing the issue as well :) If you have questions/comments/concerns, let me know.