Fix OAuth: Add baseUrl getter to ApiClient

- OAuth login URLs need baseUrl without /api/v1 suffix
- Added getter that derives baseUrl from getApiBaseUrl()
This commit is contained in:
2025-12-09 18:03:15 +01:00
parent 1c361e86ed
commit 4bfbe3ad36

View File

@ -46,6 +46,10 @@ interface ApiError {
class ApiClient {
private token: string | null = null
get baseUrl(): string {
return getApiBaseUrl().replace('/api/v1', '')
}
setToken(token: string | null) {
this.token = token