SmartCredit.io
ApplicationTwitterTelegramLinked In
  • SmartCredit.io
  • Fixed-term/Fixed-rate Borrowing/Lending
    • How are loan requests matched?
    • Credit Lines
    • Fixed-Income Funds
    • Fixed Loan Term
    • Fixed Interest Rate
    • Efficient use of Collateral
    • Positions Monitoring System
    • No Bank Run Risks
    • Collaterals
    • Collateral Ratios
    • Liquidations
    • Loss Provision Fund
    • Oracles Integration
    • Fiat On-Ramp/Off-Ramp
    • Borrow/Lend SDK and Widgets
      • Use Cases
      • Borrow/Lend SDK
        • Borrowing SDK
          • Authentication
            • Auth Challenge
            • Authenticate
          • Validators
          • Collateral Ratio
          • Credit Line
            • Get Credit Lines
            • Create Credit Line
          • Loan Request
            • Calculate Collateral Amount
            • Sign Loan Request
            • Create Loan Request
          • View Loans
            • All Loans
            • Single Loan
          • Deposit Collateral
            • Deposit collateral for ETH
            • Deposit Collateral for ERC20
          • View Collateral
            • Locked Collateral
            • Unlocked Collateral
          • Repay Loan
            • Repay ETH Loan
            • Repay ERC20 Loan
          • Terminate Loan
          • Liquidation
            • Liquidation Probability
            • Increase Collateral for ETH
            • Increase Collateral for ERC20
        • Lending SDK
          • Authentication
            • Auth Challenge
            • Authenticate
          • Create FIF
          • Get FIF List
          • Deposit in FIF
            • Deposit ETH
            • Deposit ERC20
          • Withdraw FIF
          • Terminate FIF
      • Borrow/Lend UI Widgets
        • WordPress Integration
          • Borrowing Widget WordPress Plugin
            • Integration
          • Lending Widget WordPress Plugin
            • Integration
        • JS Integration
          • Borrowing Widget Integration
          • Lending Widget Integration
  • Fixed-term/Fixed-rate Leveraged Lido staking
    • Start leveraged staking
    • Regular finishing
    • Early finishing
    • Positions Monitoring
    • Platform Fees
  • How to earn?
    • Earning via Rewards
    • Earning via Fixed-Term/Fixed-Rate
    • Earning via Leverage Lido Staking
  • Staking and Rewards
    • Borrower and Lender Bonus Rewards
    • Staking
    • Gasless Re-staking
    • Integrator Rewards
    • Affiliate Program
  • Security
    • Audits
    • AI-based Crypto Transactions Monitoring
    • Bug Bounties
  • Regulations
    • Peer-to-Pool-to-Peer Business Models
    • Peer-to-Peer Business Models
    • Offering Access to the Securities Products
    • Crypto Transactions Monitoring
  • Roadmap
    • Release 1.0 - Foundation
    • Release 1.1 - Fixed Income Funds
    • Release 1.2 - Credit Lines
    • Release 1.3 - UI & AI
    • Release 1.4 - Fixed Rate Leveraged Lido Staking
    • Release 1.5 - Simple and Advanced Borrowing
    • Release 1.6 - Islamic Banking
  • Our Token
  • Partners
  • Revenue Model
  • FAQs
  • Tutorials
  • Social Media Channels
  • AI-driven Decentral Autonomous Bank
Powered by GitBook
On this page
  1. Fixed-term/Fixed-rate Borrowing/Lending
  2. Borrow/Lend SDK and Widgets
  3. Borrow/Lend SDK
  4. Lending SDK
  5. Authentication

Authenticate

signMessage for Ropsten network: "Sign this message to authenticate with https://www.smartcredit.io. 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({
  walletAddress,
  signature,
  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"
    }
}
PreviousAuth ChallengeNextCreate FIF

Last updated 3 years ago