I build a tiny little App that lets you login with your Google or Discord Account and greets you with your username if logged in. Code is here: https://github.com/theLazyPragmatic/oauthtest
so, I haven't figured out Riverpod yet, so you have to reload the app in order to see the greeting. This issue is not about that (although I am more than happy if someone shows me whats wrong). BUT: Redirecting from google signin does work as expected, redirecting from discord does not. Both providers received the same redirect-uri from the appwrite console during setup. Discord also creates a user / a session in appwrite - after authorizing, the browser gets briefly redirected to cloud.appwrite.io, but then immediately back to discord.
@D5 thanks for looking into it.
After redirect, you can route. You don't need to use riverpod
Just material route
...But I want to use riverpod and I don't want a new route, I want this page to be rebuilt. Routing back to the page after login/logout feels like a clever hack, but a cheat nontheless.. (and it does not work...)
The core problem, however, is that - for Discord - there is no redirect. Browser: Discord.com -> "Authorize" -> cloud.appwrite.io -> Discord.com -> "Authorize" etc. At least google redirects back (but does not rebuild page.)
After the GetX experience, I recommend sticking to native/flutter parts if possible. Using riverpod for displaying data is great and I do that. However in your case, you should route after login to a different page instead of changing/hiding the existing widget
Hmm I think all the ouath providers redirect back to the app, right?
Docs say they should. MyApp says they don't.
But only for Discord? Google returns back to the app?
Yes.
Recommended threads
- GB Hours IS NOT resetting
Hi, I was checking my usage and noticed that all of my usage quotas were reset on August 20, 2026, when my billing cycle renewed. Everything else appears to ha...
- Confused about Appwrite Pro pricing
Hi. I've been subscribed to the $25 Appwrite Pro plan, but I've been getting charged $40. I have two projects on my account. I was wondering where exactly the e...
- Appwrite (Dart SDK) (for package_info_pl...
Hi team! Many Flutter plugins now need package_info_plus 10.x and device_info_plus 13.x, but appwrite 25.4.0 still constrains package_info_plus: >=8.0.2 <10.0...