Skip to content
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

Implement Google Sign-out #98

Closed
Mohitmadhav opened this issue Oct 2, 2021 · 4 comments
Closed

Implement Google Sign-out #98

Mohitmadhav opened this issue Oct 2, 2021 · 4 comments
Assignees
Labels
bug Something isn't working easy Easy level issue firebase For Firebase related issues good first issue good issue for first-time contributors Hacktoberfest For Hacktoberfest 2021 normal-priority Something that has a normal priority

Comments

@Mohitmadhav
Copy link
Member

Description

  • The user should log out when tapped on the Logout button as shown in the screenshot.
  • Currently, the user directly gets navigated to the initial screen without getting logged out.

Screenshots

Steps to Reproduce

Please provide detailed steps for reproducing the issue.

  1. Private profile: lib/screens/profile/private_profile.dart
  2. Google Firebase Auth: lib/services/auth.dart
  3. Initial Screen: lib/screens/initial_screen.dart
  4. Check for the access token expiry because the user should again login after a certain period of time (Like - a few days after logging in)

Additional data

Google Firebase auth is already setup, you just need to implement google signout.

@Mohitmadhav Mohitmadhav added bug Something isn't working easy Easy level issue normal-priority Something that has a normal priority Hacktoberfest For Hacktoberfest 2021 good first issue good issue for first-time contributors firebase For Firebase related issues labels Oct 2, 2021
@sarthakvaishnav09
Copy link

Hey, I would like to work on this.

@Mohitmadhav
Copy link
Member Author

Okay, cool @sarthakvaishnav09.

Please make sure to follow the updated guidelines given in the README.

@sarthakvaishnav09
Copy link

@Mohitmadhav I ran into a new issue while logging in using email and password.

The getter 'uid' was called on null.

Also, the profile tab keeps on loading forever, so I'm not able to reproduce this error. (This happens when I sign up for this first time in the app, later on when I log in with the same email the error of null uid arises)

PS : The google signOut method in auth.dart seems completed already.

What should I do?

@Mohitmadhav
Copy link
Member Author

@Mohitmadhav I ran into a new issue while logging in using email and password.

The getter 'uid' was called on null.

Also, the profile tab keeps on loading forever, so I'm not able to reproduce this error. (This happens when I sign up for this first time in the app, later on when I log in with the same email the error of null uid arises)

PS : The google signOut method in auth.dart seems completed already.

What should I do?

Yeah @sarthakvaishnav09, I have assigned that issue to someone else.
You just check for google signout.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working easy Easy level issue firebase For Firebase related issues good first issue good issue for first-time contributors Hacktoberfest For Hacktoberfest 2021 normal-priority Something that has a normal priority
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants