Just Auth Docs
  • JustAuth
  • Getting Started with JustAuth
  • Integration
    • Initialization
    • Using the useJustAuth Hook
    • Opening the Auth Modal
    • Checking Authentication Status
    • Exporting Private Key
    • Logging Out
    • Signing Messages
    • Signing Transactions
Powered by GitBook
On this page
  • Overview
  • How to Use
  • Parameters
  • Example
  1. Integration

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>
PreviousUsing the useJustAuth HookNextChecking Authentication Status

Last updated 7 months ago