Skip to content
This repository has been archived by the owner on Feb 22, 2024. It is now read-only.

Latest commit

 

History

History
24 lines (18 loc) · 851 Bytes

Authorization.md

File metadata and controls

24 lines (18 loc) · 851 Bytes

How to login with Authorization token

The library uses a Authorization token. This token is subject to expiration, it may not work indefinitely.
To get this token you need to:

Method : request header

  • go to the HoneyGain dashboard
  • open the dev tools by pressing Ctrl + Shift + I or F12 and go to the Network tab
  • log into your account
  • in any of the requests requests, go to the Headers tab, in the Request Headers part, look for the Authorization header.
  • copy the value of this header. It begins by Bearer.
  • example:
    header: Authorization: Bearer eyJ0eXAi...xaL5x4

Final step

  • write the Authorization token in the client.login function:
client.login("eyJ0eXAi...xaL5x4");
//you can include or not "Bearer "