@hotosm/hanko-auth 0.3.3 → 0.3.4
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/hanko-auth.esm.js +2 -2
- package/dist/hanko-auth.iife.js +1 -1
- package/dist/hanko-auth.umd.js +1 -1
- package/package.json +1 -1
- package/src/hanko-auth.ts +6 -4
package/dist/hanko-auth.esm.js
CHANGED
|
@@ -4568,8 +4568,8 @@ let ve = class extends Ut {
|
|
|
4568
4568
|
handleDropdownSelect(n) {
|
|
4569
4569
|
const e = n.detail.item.value;
|
|
4570
4570
|
if (this.log("🎯 Dropdown item selected:", e), e === "profile") {
|
|
4571
|
-
const t = this.
|
|
4572
|
-
window.location.href = `${
|
|
4571
|
+
const t = this.redirectAfterLogin || window.location.origin, o = this.loginUrl ? `${this.loginUrl}/profile` : `${this.hankoUrl}/app/profile`;
|
|
4572
|
+
window.location.href = `${o}?return_to=${encodeURIComponent(t)}`;
|
|
4573
4573
|
} else if (e === "connect-osm") {
|
|
4574
4574
|
const i = window.location.pathname.includes("/app") ? window.location.origin : window.location.href, s = this.hankoUrl;
|
|
4575
4575
|
window.location.href = `${s}/app?return_to=${encodeURIComponent(
|