completeConnectionAfterRedirect()
Othent JS SDK completeConnectionAfterRedirect() function
API
completeConnectionAfterRedirect(
callbackUriWithParams?: Auth0RedirectUriWithParams,
): Promise<UserDetails | null>;callbackUriWithParams?: Auth0RedirectUriWithParams
callbackUriWithParams?: Auth0RedirectUriWithParamsreturn Promise<UserDetails | null>
return Promise<UserDetails | null>Example usage
import { Othent } from "@othent/kms";
const MyComponent = () => {
const othent = useMemo(() => {
return new Othent(options);
}, [options]);
useEffect(() => {
othent.completeConnectionAfterRedirect();
}, [othent])
}Last updated