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
loginfunction fromLinkerStudio/modules/authentication/Auth0/utils/Auth0Helperand 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?