#Astro SSR runtime crypto API not all available
1 messages · Page 1 of 1 (latest)
I guess the environment of Astro SSR is probably unsafe so that the crypto apis are not avoided.
I also already modified the code in Auth.js' codebase which uses crypto.subtle (I am importing the crypto node module) but there are still some external libraries using crypto.subtle and it's fairly impossible to modify all of them.
The globalThis.crypto is also readonly so that I am unable to polyfill the crypto apis.
I made some small tests and it seems that it's the problem of Vite.
Anyone familiar with that?
You could try using https://www.npmjs.com/package/auth-astro
Thank you! This repo is so hard to find... (Actually I already solved my problem😂 )