Adding Microsoft auth

This commit is contained in:
Corey Blais
2026-04-15 17:51:17 -04:00
parent 5218a24bd1
commit 31464d9940
5 changed files with 9 additions and 1 deletions
+1 -1
View File
@@ -471,7 +471,7 @@ const clearSessionToken = () => {
const readStoredSessionToken = () => window.localStorage.getItem(sessionTokenStorageKey) ?? '';
const oauthStartUrl = (providerKey: AuthProvider['providerKey']) => {
const url = new URL(`${apiBaseUrl}/auth/oauth/${providerKey}/start`);
const url = new URL(`${apiBaseUrl}/auth/oauth/${providerKey}/start`, window.location.origin);
url.searchParams.set('redirectTo', window.location.href);
return url.toString();
};