@passkeyme/auth 2.0.13 → 2.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.esm.js +1 -4
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +1 -4
- package/dist/index.js.map +1 -1
- package/dist/index.umd.js +1 -4
- package/dist/index.umd.js.map +1 -1
- package/dist/src/passkeyme-auth.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/index.umd.js
CHANGED
|
@@ -1020,10 +1020,7 @@
|
|
|
1020
1020
|
redirectToOAuth(provider, redirectUri) {
|
|
1021
1021
|
const finalRedirectUri = redirectUri || this.config.redirectUri;
|
|
1022
1022
|
// Build direct OAuth initiation URL - use apiUrl for backend API endpoints
|
|
1023
|
-
const apiBaseUrl = this.config.apiUrl ||
|
|
1024
|
-
(typeof window !== "undefined" && window.location.hostname !== "localhost"
|
|
1025
|
-
? "https://api.passkeyme.com"
|
|
1026
|
-
: "http://localhost:8000");
|
|
1023
|
+
const apiBaseUrl = this.config.apiUrl || "https://api.passkeyme.com";
|
|
1027
1024
|
const params = new URLSearchParams({
|
|
1028
1025
|
redirect_uri: finalRedirectUri,
|
|
1029
1026
|
});
|