GOOGLE

Members

google.requestAuth({ scope = "" })

“Request auth on specified scopes”

Parameters:scope (str) – list of scopes
Raises:AUTH_FAIL: auth failed
Raises:AUTH_NOT_GRANTED: user did not grant auth
Raises:SCOPE_NOT_FOUND: scope could not be found
Raises:UNRECOVERABLE_AUTH_EXCEPTION: an unrecoverable exception was thrown
Return type:AuthOkEvent
class google.AuthOkEvent
getUserId()
Returns:userId logged in
getService()
Returns:service on which user is logged in
getScope()
Returns:scope on which user is logged in
google.removeAuth({ email = "", scope = "" })

“Remove auth for email user, on specified scopes”

Parameters:
  • scope (str) – list of scopes
  • email (str) – user mail address
Raises:

ACCOUNT_NOT_FOUND: account could not be found

Raises:

SCOPE_NOT_FOUND: scope could not be found