You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello.
I've spent. hours to figure this out and hope someone can help me out with this.
I am using Vercel to host my project and every time validateAuthorizationCode is triggered(no matter how i tried to handle certificate ). I tried to
add context to vercel env.
encode p8 file to .p8.enc to and convert to p8 and read it.
3 finally, i uploaded p8 file directly to project and read it.(which I will not be doing)
it returns an error
Error: Invalid character:
at Base64Encoding.decode (file:///var/task/node_modules/oslo/dist/encoding/base64.js:67:27)
at decodeBase64 (file:///var/task/node_modules/oslo/dist/encoding/base64.js:92:19)
at parsePKCS8PEM (file:///var/task/node_modules/arctic/dist/providers/apple.js:64:12)
at Apple.createClientSecret (file:///var/task/node_modules/arctic/dist/providers/apple.js:50:46)
at Apple.validateAuthorizationCode (file:///var/task/node_modules/arctic/dist/providers/apple.js:25:37)
at handleAppleCallback (file:///vercel/path0/src/controllers/oauth.ts:344:21)
at processTicksAndRejections (node:internal/process/task_queues:95:5)
Hello.
I've spent. hours to figure this out and hope someone can help me out with this.
I am using Vercel to host my project and every time validateAuthorizationCode is triggered(no matter how i tried to handle certificate ). I tried to
3 finally, i uploaded p8 file directly to project and read it.(which I will not be doing)
it returns an error
I've done some research and first, and based on following code I am wondering if upgrade/update is need to this.
https://github.com/pilcrowOnPaper/arctic/blob/main/src/providers/apple.ts
I debugged the project to make sure that p8 file is read correctly.
I also ran parsePKCS8PEM locally to make sure my p8 file is valid base64.
Any idea?
The text was updated successfully, but these errors were encountered: