Skip to main content

Type Alias: UseAuthReturn

UseAuthReturn: { authorize: (params?: AuthFlowOptions) => Promise<void>; disconnect: () => Promise<void>; error: unknown; isAuthorized: boolean; isLoading: boolean; revokeAccess: () => Promise<void>; siwe: (params: AuthFlowSIWEOptions) => Promise<void>; }

Type declaration

NameTypeDescription
authorize(params?: AuthFlowOptions) => Promise<void>Constructs the url and redirects to the Monerium auth flow.
disconnect() => Promise<void>-
errorunknown-
isAuthorizedbooleanIndicates whether the SDK is authorized.
isLoadingbooleanIndicates whether the SDK authorization is loading.
revokeAccess() => Promise<void>-
siwe(params: AuthFlowSIWEOptions) => Promise<void>Sign in with Ethereum. https://monerium.com/siwe