diff --git a/index.js b/index.js index 2aaa153..0b9fd1c 100644 --- a/index.js +++ b/index.js @@ -17,7 +17,7 @@ export function initLoginButton( ) { const container = document.getElementById(containerId) const parsedBaseUrl = new URL(baseUrl) - const apiUrl = `${parsedBaseUrl.origin}/api/v0/users/me?format=json` + const apiUrl = `${parsedBaseUrl.origin}/api/v0/users/me/?format=json` const loginUrl = `${parsedBaseUrl.origin}/login/ol-oidc/` fetch(apiUrl, { method: "GET",