Nerdkidchiki
Nerdkidchiki13mo ago

Getting Server error when setting Github sign in with Convex Auth in Next js

i am receiving this errior in my Next js terminal when trying to sign up using github in my Convex app.....Uncaught Error: Uncaught TypeError: "pkcs8" must be PKCS#8 formatted string
14 Replies
Nerdkidchiki
NerdkidchikiOP13mo ago
i regenerated the JWKS and JWT private key and pasted in my Convex dashboard and im getting a diferent error...Uncaught Error: Uncaught InvalidCharacterError: Failed to execute 'atob': Invalid byte 61, offset 1622.
rgz
rgz13mo ago
Can you post how you're trying to set it? Did you sent env keys in convex dashboard?
Nerdkidchiki
NerdkidchikiOP13mo ago
yes i did
These re my logs ono convex dashboard
Nerdkidchiki
NerdkidchikiOP13mo ago
this is what the environment keys look like
No description
rgz
rgz13mo ago
@Nerdkidchiki Can you show me how your auth.ts file looks
Nerdkidchiki
NerdkidchikiOP13mo ago
this is it
No description
rgz
rgz13mo ago
Is your code open source?
Nerdkidchiki
NerdkidchikiOP13mo ago
nope The accounts are being created in the dasboard a nd all but the session is not being returned...
rgz
rgz13mo ago
Hmm I'd need to check it out I can try to recreate it I'm using NextJS and Convex Auth at the moment and havent run into this
Nerdkidchiki
NerdkidchikiOP13mo ago
i will try and reinstall and go throght the process again
rgz
rgz13mo ago
Yeah let me know what happens, if you haven't done much and it's just the auth, I'm more than happy to check it out if you wannt invite me to the repo
sshader
sshader13mo ago
(I'd also try incognito / clearing local storage + cookies to make sure there's nothing stored there that's messing this up)
Nerdkidchiki
NerdkidchikiOP13mo ago
Thanks so much i managed to resolve the issue...seems i didnt properly set up the convex auth
Younes
Younes3mo ago
I just experienced this. The issue was due to me copying the values straight from the terminal in Cursor. i knew it would mess up things.. xd I would suggest to update the script in the doc to have something that appends to an existing .env(.local) or write to a file in general. This would prevent a lot of troubles. not everyone bothers to check discord :/

Did you find this page helpful?