Skip to content

Commit

Permalink
fix: login URL generation (#91)
Browse files Browse the repository at this point in the history
  • Loading branch information
holtgrewe authored Oct 2, 2023
1 parent 2d8f3ca commit 044e5f3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion frontend/src/api/auth.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ export class AuthClient {
}

async fetchOAuth2LoginUrl(provider: OAuth2Provider, redirectTo?: string | null): Promise<string> {
let url = `${this.apiBaseUrl}/auth/external/cookie/${provider.name}/authorize`
let url = `${this.apiBaseUrl}auth/external/cookie/${provider.name}/authorize`
if (redirectTo) {
url += `?redirect_to=${encodeURIComponent(redirectTo)}`
}
Expand Down

0 comments on commit 044e5f3

Please sign in to comment.