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

Exporting Private Key

Overview

The exportPrivateKey function allows users to export their private key securely.

How to Use

  1. Destructure the function from the hook:

    const { exportPrivateKey } = useJustAuth();
  2. Call the function:

    const handleExportPrivateKey = () => {
       exportPrivateKey();
    };

Parameters

  • No parameters are required for this function.

Example

const handleExportPrivateKey = () => {
   exportPrivateKey();
};

Note: This function opens a modal for the user to confirm and securely export their private key.

PreviousChecking Authentication StatusNextLogging Out

Last updated 8 months ago