In-App UI
React
Components
MsTeamsAuthButton
MsTeamsAuthButton
A React component that renders a button for authenticating with Microsoft Teams.
Usage#
Props#
graphApiClientIdstring
The client ID of your Microsoft Graph API-enabled application registered with Microsoft Entra. This should match the "Graph API client ID" setting of your Microsoft Teams channel in the Knock dashboard.redirectUrlstring
The URL of your application to return to once Microsoft Teams authorization is complete.onAuthenticationComplete(authenticationResult: 'authComplete' | 'authFailed') => void;
An optional callback function you can pass to this component that will execute upon completion of the authentication flow. Takes one argument of the authentication result for you to handle in your callback.