Nerdkidchiki
Nerdkidchiki4mo 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
13 Replies
Nerdkidchiki
NerdkidchikiOP4mo 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
rgz4mo ago
Can you post how you're trying to set it? Did you sent env keys in convex dashboard?
Nerdkidchiki
NerdkidchikiOP4mo ago
yes i did
These re my logs ono convex dashboard
Nerdkidchiki
NerdkidchikiOP4mo ago
this is what the environment keys look like
No description
rgz
rgz4mo ago
@Nerdkidchiki Can you show me how your auth.ts file looks
Nerdkidchiki
NerdkidchikiOP4mo ago
this is it
No description
rgz
rgz4mo ago
Is your code open source?
Nerdkidchiki
NerdkidchikiOP4mo ago
nope The accounts are being created in the dasboard a nd all but the session is not being returned...
rgz
rgz4mo 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
NerdkidchikiOP4mo ago
i will try and reinstall and go throght the process again
rgz
rgz4mo 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
sshader4mo ago
(I'd also try incognito / clearing local storage + cookies to make sure there's nothing stored there that's messing this up)
Nerdkidchiki
NerdkidchikiOP4mo ago
Thanks so much i managed to resolve the issue...seems i didnt properly set up the convex auth

Did you find this page helpful?