Skip to main content

useLogin

useLogin(idpName: string,options: LoginOptions): 

The useLogin hooks instanciates a login service

const [error, loading, submit] = useLogin(idpName, options);

Properties

This element is often used without passing props

Additional properties for advanced use cases
PropertiesTypeDescription
idpNamestringidpName is used to retrieve the configuration identified by the key idp/:idpName in src/settings.ts.
optionsLoginOptions