signMessage for Ropsten network: "Sign this message to authenticate with This wont cost you any Ether. Here is a uniqueu ID:".

async authenticate()

  • walletAddress:string - is the address of the user

  • signature:string - is signMessage + authChallenge

  • userRef:string - will be equal to "1"

const response = await this.LendingService.authUser({
  userRef: "1"

This is an example of the successful response object of this function:

    "status": "Success",
    "data": {
        "token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJldGhBZGRyZXNzIjoiMHg3NjgwMjA4N2Q5OTA3ZTBjOTk4Yzk1NTU5ZWRkZTIzMDkwMGFmNzYyIiwidXNlcl9pZCI6IjBlOGU4MjE5LWI3NzUtNGU2Ni1iNDE2LWM1NmMyYmM4YjE3NSIsInJvbGUiOiJBdXRoZW50aWNhdGVkIiwiaWF0IjoxNjQzNjM0NDUxLCJleHAiOjE2NDM2NjQ0NTF9.X_w2Jhb0_aoLXwLAdm91M7cZF_7xaaskaY-2Z5K-N7I"

Last updated