- useConnect(): {
authData: FinishedAuthData;
authOptions: AuthOptions;
authenticate: ((authOptions, provider?) => Promise<void>);
doAuth: ((options?, provider?) => void);
doContractCall: ((options, provider?) => Promise<void>);
doContractDeploy: ((options, provider?) => Promise<void>);
doOpenAuth: ((signIn?, options?, provider?) => void);
doProfileUpdate: ((options, provider?) => Promise<void>);
doSTXTransfer: ((options, provider?) => Promise<void>);
doSignTransaction: ((options, provider?) => Promise<void>);
isAuthenticating: boolean;
isOpen: boolean;
sign: ((options, provider?) => Promise<void>);
signPsbt: ((options, provider?) => Promise<void>);
signStructuredData: ((options, provider?) => Promise<void>);
userSession: UserSession;
} Returns {
authData: FinishedAuthData;
authOptions: AuthOptions;
authenticate: ((authOptions, provider?) => Promise<void>);
doAuth: ((options?, provider?) => void);
doContractCall: ((options, provider?) => Promise<void>);
doContractDeploy: ((options, provider?) => Promise<void>);
doOpenAuth: ((signIn?, options?, provider?) => void);
doProfileUpdate: ((options, provider?) => Promise<void>);
doSTXTransfer: ((options, provider?) => Promise<void>);
doSignTransaction: ((options, provider?) => Promise<void>);
isAuthenticating: boolean;
isOpen: boolean;
sign: ((options, provider?) => Promise<void>);
signPsbt: ((options, provider?) => Promise<void>);
signStructuredData: ((options, provider?) => Promise<void>);
userSession: UserSession;
}
authenticate: ((authOptions, provider?) => Promise<void>)
- (authOptions, provider?): Promise<void>
Returns Promise<void>
doAuth: ((options?, provider?) => void)
- (options?, provider?): void
Returns void
doContractCall: ((options, provider?) => Promise<void>)
- (options, provider?): Promise<void>
Returns Promise<void>
doContractDeploy: ((options, provider?) => Promise<void>)
- (options, provider?): Promise<void>
Returns Promise<void>
doOpenAuth: ((signIn?, options?, provider?) => void)
- (signIn?, options?, provider?): void
Parameters
Optional
signIn: boolean
Optional
options: Partial<AuthOptions>
Returns void
doProfileUpdate: ((options, provider?) => Promise<void>)
- (options, provider?): Promise<void>
Returns Promise<void>
doSTXTransfer: ((options, provider?) => Promise<void>)
- (options, provider?): Promise<void>
Returns Promise<void>
doSignTransaction: ((options, provider?) => Promise<void>)
- (options, provider?): Promise<void>
Returns Promise<void>
isAuthenticating: boolean
isOpen: boolean
sign: ((options, provider?) => Promise<void>)
- (options, provider?): Promise<void>
Returns Promise<void>
signPsbt: ((options, provider?) => Promise<void>)
- (options, provider?): Promise<void>
Returns Promise<void>
signStructuredData: ((options, provider?) => Promise<void>)
- (options, provider?): Promise<void>
Returns Promise<void>
Whether the user should be sent to sign in