getUserName method

String? getUserName()

Retrieves the user name obtained during the authorization process.

Note: Do not call this method before calling authorize().

Implementation

String? getUserName() {
  return credential?.idToken.claims.name;
}