Skip to main content

Sign-in button component

Sign in with Infinity

Use the SignInWithInfinityButton component, to integrate a sign in button on your app's login screen. This button will automatically launch the authentication flow.

<SignInWithInfinityButton
onSuccessfulSignIn={(data) => {
// The sign-in was successfully completed.
console.log(data.launchToken, data.organisationId)
}}
/>

Props

  • onSuccessfulSignIn: (result: InfinityAuthResult) => void

    Callback when the user has logged in successfully. The result parameter contains the one-time launch token that can be used to authenticate with Infinity Fabric and the organisationId.