Skip to content

Commit

Permalink
fix: bad redirect uri
Browse files Browse the repository at this point in the history
  • Loading branch information
Clovis committed Dec 21, 2024
1 parent 94f591a commit f7095b2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion elk/server/utils/shared.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ else if (driver === 'memory') {
}

export function getRedirectURI(origin: string, server: string) {
const host = origin.replace(/^https?:\/\//, '').replace(/\W/g, '-').replace(/\?.*$/, '')
const host = origin.replace(/^https?:\/\//, '').replace(/\?.*$/, '')
return `${origin}/api/${server}/oauth/${encodeURIComponent(host)}`
}

Expand Down

0 comments on commit f7095b2

Please sign in to comment.