Skip to content

[google_sign_in] Support setting the nonce for each authentication #175029

@BinnyBipin

Description

@BinnyBipin

I am implementing (SUI) zk login with Google Sign in. For which we need nonce. Now when the google sign is initialized once and the nonce is set, upon logging out and reinitializing with new nonce doesn't work.

In the doc it is mentioned Clients must call this method(Initialize) exactly once.

If this is the case how could i possibly pass a different nonce for different account. Need Help!

..initialize(
clientId: kIsWeb
? AppConstants.googleServerId
: AppConstants.googleClientId,
serverClientId: kIsWeb ? null : AppConstants.googleServerId,
nonce: nonce,
)

Metadata

Metadata

Assignees

No one assigned

    Labels

    P2Important issues not at the top of the work listc: new featureNothing broken; request for a new capabilityp: google_sign_inThe Google Sign-In pluginpackageflutter/packages repository. See also p: labels.team-ecosystemOwned by Ecosystem teamtriaged-ecosystemTriaged by Ecosystem team

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions