Skip to content
Back

Flutter OAuth2 webAuth Bug?

  • 0
  • Self Hosted
  • Flutter
  • Auth
Kuromory
21 Jan, 2026, 15:42

I created with flutter an app where I can login in with my Microsoft Account. When I compile it to Web (WASM) or Android (aab) then there is no problem what so ever. But when I try to login with my Desktop App (Windows) either it just tells me I need to have a "http:localhost:{port]" for success or I get when I put that an error that the "key and secret are null"... when I try it with dart createOAuth2Session() they are null BUT when i use ```dart createOAuth2Token()

TypeScript
it is returned "userId" and "secret" not "key"

I look at this https://github.com/appwrite/sdk-for-flutter/issues/256

and saw there was an issues around half a year ago... is this still not fixed?
TL;DR
Developers are facing a bug when trying to integrate Flutter OAuth2 webAuth with Microsoft Account login. The issue arises when using the Desktop App (Windows) and encountering an error related to the key and secret being null. There is a similar reported issue on GitHub related to this problem. It seems to be unresolved currently.
Reply

Reply to this thread by joining our Discord

Reply on Discord

Need support?

Join our Discord

Get community support by joining our Discord server.

Join Discord

Get premium support

Join Appwrite Pro and get email support from our team.

Learn more