muety / wakapi

📊 A minimalist, self-hosted WakaTime-compatible backend for coding statistics

Home Page:https://wakapi.dev

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Error when requesting using api key

heitoke opened this issue · comments

curl -X 'GET'
'https://wakapi.dev/api/compat/wakatime/v1/users/current'
-H 'accept: application/json'
-H 'Authorization: Basic '

Token: 0d4c5f9c-0000-0000-0000-....

When I make a request to the API, it writes to me that there is a 401 error, but I do not understand why...

Are you passing your token in base64 encoding after the Basic prefix as part of the Authorization header?

I'm sorry, I'm just a fool and didn't read what needs to be encoded... I'm sorry again...