Skip to content

Commit

Permalink
Merge pull request #3 from jspizziri/patch-1
Browse files Browse the repository at this point in the history
fix(KcAccountUiLoader.tsx): authUrl can be a string
  • Loading branch information
garronej authored Sep 19, 2024
2 parents 86dba5a + 8887d57 commit b1f367e
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/KcAccountUiLoader.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -177,6 +177,11 @@ function init(
}

const { authUrl } = kcContext;

if (typeof authUrl === "string") {
return authUrl;
}

return `${authUrl.scheme}:${authUrl.rawSchemeSpecificPart.replace(/\$/, "")}`;
})();

Expand Down

0 comments on commit b1f367e

Please sign in to comment.