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
Name | Type | Description |
---|---|---|
authorize | (params ?: AuthFlowOptions ) => Promise <void > | Constructs the url and redirects to the Monerium auth flow. |
disconnect | () => Promise <void > | - |
error | unknown | - |
isAuthorized | boolean | Indicates whether the SDK is authorized. |
isLoading | boolean | Indicates whether the SDK authorization is loading. |
revokeAccess | () => Promise <void > | - |
siwe | (params : AuthFlowSIWEOptions ) => Promise <void > | Sign in with Ethereum. https://monerium.com/siwe |