Skip to content

Commit

Permalink
fix auth provider json parsing
Browse files Browse the repository at this point in the history
  • Loading branch information
sebadob committed May 25, 2024
1 parent 2721bea commit 22751ee
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion frontend/src/components/account/AccInfo.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,10 @@
// "id": "7F6N7fb3el3P5XimjJSaeD2o",
// "name": "Rauthy IAM"
// }];
providersAvailable = document?.getElementsByTagName("template").namedItem("auth_providers")?.innerHTML;
let tpl = JSON.parse(document?.getElementsByTagName("template").namedItem("auth_providers")?.innerHTML);
if (tpl) {
providersAvailable = JSON.parse(tpl);
}
})
function linkProvider(id) {
Expand Down

0 comments on commit 22751ee

Please sign in to comment.