Hello, idk if this is the right channel but im having problems with apple sign in Im unable to sign ...
k
Hello, idk if this is the right channel but im having problems with apple sign in Im unable to sign the jwt with the key apple provided, the jsonwebtoken library gives me the error
secretOrPrivateKey must be an asymmetric key when using ES256
r
hey @kevin.mv you should check the keys you have provided to supertokens - there might be some issue with their generation i guess.
k
I tried with the example keys supertokens provides and outputs the same error
r
When you say you are signing a JWT with the keys apple provided - why are you trying to do that?
k
Im not signing it directly, supertokens library does
And the library (jsonwebtoken) just throws that error
r
I’m still not sure what you are trying to do. The keys provided by apple should go in the apple.init on the backend
You don’t need anything to do with jsonwebtoken lib yourself
k
Im well aware of that
Im not doing it myself
r
Right. So you are providing the keys to our Lib, and the init call is throwing this error?
k
Right
r
Which version of the backend SDK and which version of jsonwebtoken is in your package-lock?
k
supertokens-node: ^13.1.2 jsonwebtoken: 9.0.0
r
Can you also share the supertokens.init code? Along with the keys (you can use our dev keys in the code since you said it throws an error with our keys as well)
k
Im so sorry Im trying the same code in my mac and seems fine buth in manjaro is broken Probably is a library at fault
r
Hmmm. Manjaro?
k
Manjaro Linux
Let me check out if it is a problem with my system
Sorry for the inconveniences
r
No worries.
118 Views