-
Notifications
You must be signed in to change notification settings - Fork 32
Implemented Supabase Google OAuth Authentication for Patient and Therapist Apps with Multi-Platform Support like Web, IOS, Android #64
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
…session management & CORS config
…st apps with multi-platform support
|
Hey @mdmohsin7! I’ve implemented everything to the best of my knowledge. Could you please review it and let me know if anything is missing? |
26b8f83 to
963b497
Compare
mdmohsin7
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Move the logic to providers for both the apps please
|
Hey @mdmohsin7! Did the requested changes. PTAL |
|
Pls do not use BuildContext in providers. The state and the logic should not depend on each other. And it is a good practice to keep the separation |
Yeah, @mdmohsin7, that makes sense! I've now separated the logic and handled UI navigation in a separate file. PTAL |
|
@khanjasir90 since auth is a requirement for your assigned issue, can you pls test it once to confirm if everything works for you as well? Once done pls lmk and I'll review the code and will merge the PR |
Sure |
|
@mdmohsin7 auth works fine in ios. |
|
@SharkyBytes pls resolve the conflicts |
|
Hey @mdmohsin7 Can you please check it now? |
Closes #17
📝 Description
This pull request integrates Supabase Google OAuth authentication for the patient and therapist applications, supporting iOS, Android, and web platforms. Key changes include:
->Added Google Sign-In functionality using Supabase in both patient and therapist apps
->Implemented platform-specific authentication flows for iOS, Android, and web
->Corrected folder structure for proper package version fetching in Android setup
->Added success and error snackbars for sign-in feedback
->Implemented user metadata retrieval for personalized welcome messages
->Set up appropriate post-authentication routing for each app
->Centralized Google Sign-In logic in
widgets/google_signin_button.dartfor both apps-> Removed the unnecessary assets from the assets folder
-> Added the .env.example in both the apps so it would be easier to setup
To use:
-->Set required credentials in the .env file in both the patient and therapist apps
-->Test Google Sign-In across all supported platforms
📷 Screenshots or Visual Changes (if applicable)
Patient App
Recording.2025-03-19.141837.mp4
Made similar changes to therapist app too
Authentical Table in Supabase
✅ Checklist