flutter / flutter/flutter

[google_sign_in] Support setting the nonce for each authentication

Open
#175,029 2 comments 2 reactions 0 assignees View on GitHub
c: new feature p: google_sign_in P2 package team-ecosystem triaged-ecosystem
Dominant language
Dart
Stars
179k
Forks
31.1k
PR merge metrics
PR metrics pending

Description

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,
)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.