Opening the Auth Modal

Overview

The openAuthModal function allows users to sign up or log in.

How to Use

  1. Destructure the function from the hook:

    const { openAuthModal } = useJustAuth();
  2. Call the function on a button click:

    <button onClick={openAuthModal}>Login / Sign Up</button>

Parameters

  • No parameters are required for this function.

Example

const { openAuthModal } = useJustAuth();

<button onClick={openAuthModal}>Login / Sign Up</button>

Last updated