https://supertokens.com/ logo
Dashboard API key issue
n

nkshah2

05/11/2023, 9:58 AM
@BradV-RM Moving this to a separate thread
b

BradV-RM

05/11/2023, 9:59 AM
thank you, Let me post some screenshots of my set up/what i'm seeing
n

nkshah2

05/11/2023, 9:59 AM
What version of SuperTokens core are you using?
Also yeah, screenshots would be great
b

BradV-RM

05/11/2023, 10:02 AM
Interestingly just noticed the payload is empty on this call, should it contain the API key that i'm trying to validate?

https://cdn.discordapp.com/attachments/1106158433851428915/1106159272427003934/image.png

https://cdn.discordapp.com/attachments/1106158433851428915/1106159272695435294/image.png

https://cdn.discordapp.com/attachments/1106158433851428915/1106159273001627679/image.png

n

nkshah2

05/11/2023, 10:02 AM
There should be an Authorization header
The payload for this is supposed to be empty
b

BradV-RM

05/11/2023, 10:03 AM
ahh yes, i can see the key as "bearer " under authorization header
n

nkshah2

05/11/2023, 10:04 AM
is it just
bearer
or does it contain your API key after the bearer as well?
b

BradV-RM

05/11/2023, 10:04 AM

https://cdn.discordapp.com/attachments/1106158433851428915/1106159864239108126/image.png

yeah sorry contains the key
for supertokens core, i'm using the latest image from registry.supertokens.io/supertokens/supertokens-postgresql in docker
n

nkshah2

05/11/2023, 10:08 AM
One sec, going to try and see if I can recreate this
b

BradV-RM

05/11/2023, 10:08 AM
no problem, thank you 🙂
n

nkshah2

05/11/2023, 10:41 AM
Hey we have identified a bug thats causing this problem and will be releasing a fix for this soon (https://github.com/supertokens/supertokens-node/pull/561). The catch here is that it will be fixed for the latest SDK version which would be a breaking change for you (13.6.0 -> 14.0.1) You can either update to the latest SDK version once its released to continue using API keys or you can use email password based auth (refer to our docs for this) and stay on 13.6.0
b

BradV-RM

05/11/2023, 10:42 AM
no problem. i'll use username/pword for now and then update once 14.0.1 is released. Thank you for looking into that 🙂
n

nkshah2

05/11/2023, 10:43 AM
Happy to help