Skip to content

Conversation

@paoloricciuti
Copy link
Contributor

Right now, if there's no state in the authorization URL opencode uses the MCP name as state...however it doesn't actually send the state parameter to the authorization server.

This, combined with a bug in better auth (where state comes back as the string undefined) which I'm gonna open a PR for in a minute, means that authentication will fail.

Now this is probably more of a better auth bug, but I would say that even returning an empty state could be problematic and if we are gonna use that state we might just also send it for real. This PR changes that.

@rekram1-node
Copy link
Collaborator

/review

@rekram1-node rekram1-node merged commit 57c3cf1 into sst:dev Dec 17, 2025
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants