Skip to content

Commit

Permalink
Merge pull request #20 from bzr-sys/fix-login-redirecturi
Browse files Browse the repository at this point in the history
Do not add path to redirect uri
  • Loading branch information
paddyohanlon authored Oct 29, 2024
2 parents 418048c + a981148 commit a7f91fe
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 a7f91fe

Please sign in to comment.