useOneAuxilia()

The useOneAuxilia() hook provides access to the OneAuxilia object, giving you the ability to build alternatives to any OneAuxilia Component.

Warning

This is intended to be used for advanced use cases, like building a completely custom OAuth flow or as an escape hatch for getting access to the OneAuxilia object.

useOneAuxilia() returns

The useOneAuxilia() hook returns the OneAuxilia object, which includes all the methods and properties listed in the OneAuxilia reference.

How to use the useOneAuxilia() hook

home.tsx
import { useOneAuxilia } from "@oneauxilia/oneauxilia-react";

export default function Home() {
  const oneauxilia = useOneAuxilia();

  return <button onClick={() => oneauxilia.openSignIn({})}>Sign in</button>;
};

Last updated