Skip to content

useAuthError

Returns the error returned from the current auth step, if it exists

Import

import { useAuthError } from "@account-kit/react";

Usage

import { useAuthError } from "@account-kit/react";
 
const error = useAuthError();
 
if (error) {
  console.error("Error occurred during auth step", error);
}

Returns

UseAuthErrorResult the current Error object