UAuth Moralis Library
The @uauth/moralis
library is a middleware library used for integrating UAuth with Moralis applications.
UAuthMoralisConnector
The default export for the @uauth/moralis
library.
class UAuthMoralisConnector extends AbstractWeb3Connector
activate()
public async activate({ chainId: providedChainId, mobileLinks, } = {}): Promise<any>
disconnect()
Discconnects any walletconnect provider and calls uauth.logout()
.
public async deactivate()
setUAuthOptions
Sets the static UAuthConstructorOptions
member of the class.
public static setUAuthOptions(_options: UAuthConnectorOptions)
uauth
Returns the uauth
member of the class instance.
public get uauth(): UAuth
UAuthConnectorOptions
The configuration options object passed to the UAuthMoralisConnector constructor.
interface UAuthConnectorOptions extends Partial<UAuthConstructorOptions> { uauth?: UAuth connectors: UAuthMoralisConnectors shouldLoginWithRedirect?: boolean }
shouldLoginWithRedirect
If shouldLoginWithRedirect
is set to true
, the UAuthMoralisConnector instance will use the login() method instead of the default, loginWithPopup().
UAuthMoralisConnectors
interface UAuthMoralisConnectors { injected: any | undefined walletconnect: any | undefined }