Live Chat

We'll need to share your messages (and your email address if you're logged in) with our live chat provider, Drift. Here's their privacy policy.

If you don't want to do this, you can email us instead at contact@anvil.works.

anvil.google.auth Module

Functions

get_user_access_token()

Get the secret access token of the currently-logged-in Google user, for use with the Google REST API. Requires this app to have its own Google client ID and secret.


get_user_email()

Get the email address of the currently-logged-in Google user.

To log in with Google, call anvil.google.auth.login() from form code.


get_user_refresh_token()

Get the secret refresh token of the currently-logged-in Google user, for use with the Google REST API. Requires this app to have its own Google client ID and secret.


login([additional_scopes])

Prompt the user to log in with their Google account.

If you have specified your own client ID in the Google Service configuration, you can specify additional OAuth scopes for use with the Google REST API.


refresh_access_token(refresh_token)

Get a new access token from a refresh token you have saved, for use with the Google REST API. Requires this app to have its own Google client ID and secret.



anvil.google.auth