Opening the Auth Modal
Overview
The openAuthModal
function allows users to sign up or log in.
How to Use
Destructure the function from the hook:
const { openAuthModal } = useJustAuth();
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