authgear / authgear-sdk-js

Authgear authentication SDK for Single Page Applications (SPA) and JavaScript websites
https://www.authgear.com/
Other
5 stars 18 forks source link

Use origin in openid config to construct url #251

Closed tung2744 closed 1 year ago

tung2744 commented 1 year ago

ref #248

louischan-oursky commented 1 year ago

IMG_7333

It seems that the URL class in React Native is only partially implemented https://github.com/facebook/react-native/issues/38966 https://github.com/facebook/react-native/blob/main/packages/react-native/Libraries/Blob/URL.js#L186

tung2744 commented 1 year ago

Oh I tested in android and it works.. Let me find another way to implement it then. Turns out it was my local setup problem.

louischan-oursky commented 1 year ago

In core/container.ts, we use import URL from "core-js-pure/features/url"; to import a working implementation of URL.

tung2744 commented 1 year ago

@louischan-oursky Fixed, thanks!