react-oidc-context icon indicating copy to clipboard operation
react-oidc-context copied to clipboard

Crypto. Subtle

Open AbdoSayedKsa opened this issue 1 year ago • 4 comments

Dears I am using node v 20.xx , "react-router-dom": "^6.21.0", I got Oops... Crypto. Subtle is available only in secure contexts (HTTPS) when I deployed on server .

Screenshot 2023-12-17 111519

AbdoSayedKsa avatar Dec 17 '23 08:12 AbdoSayedKsa

See https://developer.mozilla.org/en-US/docs/Web/API/Crypto/subtle, i guess you are using SSR? We probably have to add some code to handle that within oidc-client-ts. To avoid that you could use v2 of this and the oidc-client-ts libraries...

pamapa avatar Dec 18 '23 07:12 pamapa

We probably have to add some code to handle that within oidc-client-ts.

Do you have any updates about this issue?

klose4711 avatar May 22 '24 08:05 klose4711

Same problem...

PanBartlomiej avatar Jul 21 '24 17:07 PanBartlomiej

The Crypto.subtle https://developer.mozilla.org/en-US/docs/Web/API/Crypto/subtle is a cornerstone, there are no plans on changing that. Try to find a solution, which works for your. Either use localhost for development or setup a proxy...

pamapa avatar Jul 22 '24 14:07 pamapa