authenticate

suspend fun authenticate(accountAddress: AccountKeyPair, walletSigner: WalletSigner? = null, memoId: ULong? = null, clientDomain: String? = null): AuthToken

Authenticates to an external server.

Return

authentication token (JWT)

Parameters

accountAddress

Stellar address of the account authenticating

walletSigner

overriding Sep10.defaultSigner to use in this authentication

memoId

optional memo ID to distinguish the account

clientDomain

optional domain hosting stellar.toml file containing SIGNING_KEY

Throws

when some of the request arguments are not valid