Hi,
I have replaced my old autherisation gtmoauth2 with GTMAppAuth. after that i want pass user email id as a input parameter to the mailcore2 library to fetch email and i got access token also. Now i want to know do i need to implement any GET methods to get user email or GTMAppAuth contains properties of user email how can i get user email.
print(
"access Token :
\
(
String(describing: authState!.lastTokenResponse!.accessToken!)
)"
) //success prints access token
self
.auth = GTMAppAuthFetcherAuthorization(authState: authState!)
// auth is a GTMAppAuthFetcherAuthorization
print(
"user email =
\
(
auth.userEmail!
)"
) // here i want to access user email from auth variable // prinitng nil value here