Skip to content

Commit

Permalink
Do not add path to redirect uri
Browse files Browse the repository at this point in the history
Do avoid login redirect uris not matching
  • Loading branch information
paddyohanlon committed Oct 29, 2024
1 parent 418048c commit a981148
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/bazaar.ts
Original file line number Diff line number Diff line change
@@ -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()
Expand Down

0 comments on commit a981148

Please sign in to comment.