Authenticating Users
Last updated
Was this helpful?
Was this helpful?
HyphenAuthenticate.authenticate(
webClientId = "<YOUR-WEB-CLIENT-ID>" // ex. 201778913659-dn4bo82q6hce3kfp7vstp04b22nh5hbi.apps.googleusercontent.com
)final HyphenAccount hyphenAccount = await HyphenAuthenticate.getAccount();
if (hyphenAccount != null) {
// Access the first address
final String firstAddress = hyphenAccount.addresses.first.address;
print("Address: $firstAddress"); // Print the first address
}