useAuthError

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

Import

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

Usage

1import { useAuthError } from "@account-kit/react";
2
3const error = useAuthError();
4
5if (error) {
6 console.error("Error occurred during auth step", error);
7}

Returns

UseAuthErrorResult the current Error object