invalid claim: missing sub claim on Manual referral signup
I
Info Ads Viewer
Here is my request:
curl --location 'https://reflio.com/api/v1/referral/manual-signup' \
--header 'token: ...' \
--header 'Content-Type: application/json' \
--data-raw '{
"referralIdentifier": "info@adsviewer.io",
"referralId": "..."
}'
I am getting 500 and
{
"error": {
"statusCode": 500,
"message": "invalid claim: missing sub claim"
}
}
I
Info Ads Viewer
Ok I figure it out, it needs the auth token no the api key. I am trying to get the auth token, but it needs a password. I don't have a password, I login with a magic link.
Also I want to exclusively Manual referral signup from the backend. So I am hoping that this authtoken won't have an expiration date.
I
Info Ads Viewer
I made another account forcing it to have a password and saw that the token expires in 1h :(
Which means that the supported backend flow is to have the api_key + email + password as environemntal veriables and make 2 requests every time. This does not sound great :(
I still don't have a password for my main (info@adsviewer.io) account. Please help me with either a password or suggesting another flow.