Login

useLogin

How to use?

  • Import useLogin:

import {useLogin} from 'LinkerStudio/modules/authentication/Auth0/utils/Auth0Helper';
  • Add this code block:

const [handleLoginButton] = useLogin();

How to Login?

  • Invoke the login function from LinkerStudio/modules/authentication/Auth0/utils/Auth0Helper and add the following code block:

 const handleLoginButton = async (email: string, password: string) => {
    try {
      await login(email, password);
    } catch (error) {
      return error
    }
  }

Last updated

Was this helpful?