From a981148c40ac4c375cf79034b90f4b0f4c594f20 Mon Sep 17 00:00:00 2001 From: Paddy Date: Tue, 29 Oct 2024 13:42:54 +0100 Subject: [PATCH] Do not add path to redirect uri Do avoid login redirect uris not matching --- src/bazaar.ts | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/bazaar.ts b/src/bazaar.ts index 114a886..a04c980 100644 --- a/src/bazaar.ts +++ b/src/bazaar.ts @@ -1,10 +1,8 @@ import { BazaarApp, type BazaarOptions } from '@bzr/bazaar' -const baseURL = window.location.origin + window.location.pathname - const config: BazaarOptions = { appId: import.meta.env.VITE_APP_ID || 'test', - loginRedirectUri: `${baseURL}`, + loginRedirectUri: window.location.origin, onApiConnectError: async function (bzr: BazaarApp, message: string) { console.log('OnConnectError', message) bzr.logOut()