Adding Microsoft auth
This commit is contained in:
@@ -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();
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user