Skip to content

Request for the Google Sign up flow for new user #306

@chiragbachwani

Description

@chiragbachwani

Steps to reproduce

I am not able to understand how Google Sign-In should work for a new user. Right now, I am using the oAuthTokenGoogle strategy, and in the attemptSignIn method we have a field to pass the token received from the Google Sign-In package.

But for a completely new user, the sign-in method detects an external account error and does not allow the new user to create an account. So then I try to use the attemptSignUp function as a fallback , but this function does not have a field to pass the token received from Google Sign-In.

How can I achieve this functionality for new users?
I do not want to use the SSO Sign-In because for the Google strategy it takes the user to a web page and asks them to log into their Google account again, which is not a good user experience. So I want to continue using the Google One-Tap (oAuthTokenGoogle) strategy.

Please guide me on the correct flow for this.

Expected results

The user (No matter new or old) should be able to just use a single function to create and login or simple log in to the account.

Actual results

The new user cannot use the oauthtoken google stratergy to create an account

Code sample

Code sample
[Paste your code here]

Screenshots or Video

Screenshots / Video demonstration

[Upload media here]

Logs

Logs
[Paste your logs here]

Flutter Doctor output

Doctor output
[Paste your output here]

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingclerk_flutterpackage: clerk_flutter

Type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions