Skip to main content
Version: v0.18.0

M365Login

Alias:M365Login

Output:Unit

Login to M365. You do not need to do this.

ParameterTypeRequiredPositionDefault ValueSummary
HandleLoginentityNot setHow to handle the login url and code. The function takes an entity with the all the relevant properties, particularly 'VerificationUri' and 'UserCode' If neither this nor the Token is set, the token and code will be logged.
TokenstringNot setThe access token. If this is not set, the user must authenticate the login by going to https://login.microsoftonline.com/common/oauth2/deviceauth and entering the code which is logged.