Fix OAuth: Add baseUrl getter to ApiClient
Some checks failed
CI / Frontend Lint & Type Check (push) Has been cancelled
CI / Frontend Build (push) Has been cancelled
CI / Backend Lint (push) Has been cancelled
CI / Backend Tests (push) Has been cancelled
CI / Docker Build (push) Has been cancelled
CI / Security Scan (push) Has been cancelled
Deploy / Build & Push Images (push) Has been cancelled
Deploy / Deploy to Server (push) Has been cancelled
Deploy / Notify (push) Has been cancelled
Some checks failed
CI / Frontend Lint & Type Check (push) Has been cancelled
CI / Frontend Build (push) Has been cancelled
CI / Backend Lint (push) Has been cancelled
CI / Backend Tests (push) Has been cancelled
CI / Docker Build (push) Has been cancelled
CI / Security Scan (push) Has been cancelled
Deploy / Build & Push Images (push) Has been cancelled
Deploy / Deploy to Server (push) Has been cancelled
Deploy / Notify (push) Has been cancelled
- OAuth login URLs need baseUrl without /api/v1 suffix - Added getter that derives baseUrl from getApiBaseUrl()
This commit is contained in:
@ -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
|
||||
|
||||
Reference in New Issue
Block a user