WebAuth class
Methods
getChallenge (String clientAccountId , [String homeDomain , String clientDomain ])
→ Future <String >
Get challenge transaction from the web auth server. Returns base64 xdr transaction envelope received from the web auth server. [...]
getChallengeResponse (String accountId , [String homeDomain , String clientDomain ])
→ Future <ChallengeResponse >
jwtToken (String clientAccountId , List <KeyPair > signers , {String homeDomain , String clientDomain , KeyPair clientDomainAccountKeyPair })
→ Future <String >
Get JWT token for wallet. [...]
noSuchMethod (Invocation invocation )
→ dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
sendSignedChallengeTransaction (String base64EnvelopeXDR )
→ Future <String >
Sends the signed challenge transaction back to the web auth server to obtain the jwt token.
In case of success, it returns the jwt token obtained from the web auth server.
signTransaction (String challengeTransaction , List <KeyPair > signers )
→ String
toString ()
→ String
A string representation of this object. [...]
inherited
validateChallenge (String challengeTransaction , String userAccountId , String clientDomainAccountId )
→ void
Validates the challenge transaction received from the web auth server.
Static Methods
fromDomain (String domain , Network network )
→ Future <WebAuth >
Creates a WebAuth instance by loading the needed data from the stellar.toml file hosted on the given domain.
e.g. fromDomain("soneso.com", Network.TESTNET) [...]
stellar_flutter_sdk
1.2.0