Migrating from anon > publishable key supabase JS
Hello! Im trying to replace my anon key with the new publishable key in supabase JS client and the new key is not being accepted. The Supabase API Gateway logs are giving me a "bad_length" error - any ideas on why this could be the case?
4 Replies
Worth trying to isolate the issue so could you try using the old anon key and see what the APi gateway logs give. I imagine if you looked in the console you should get some 401 or something along those lines
yes!
anon key logs:
publishable key logs:
received a 401 from POST /auth/v1/token with the new publishabl ekey
So I get that error if I delete or add an extra character from my publishable key. Seems like you are not using the right key or are adding/missing letter.
@garyaustin omg...I swear to god i was clicking the clipboard icon to copy, and somehow just saw there was a random backslash that was getting intot he middle of the string...
that fixed it - thank you very much for the nudge to look closely at the string!! have no idea how that happened