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.microsoft.auth Module

Functions

get_user_access_token()

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


get_user_email()

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

To log in with Microsoft, call anvil_microsoft.auth.login() from form code.


get_user_refresh_token()

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


login()

Prompt the user to log in with their Microsoft account


refresh_access_token(refresh_token)

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



anvil.microsoft.auth