Merge remote-tracking branch 'refs/remotes/origin/main'
This commit is contained in:
@@ -23,7 +23,7 @@ api.interceptors.request.use((config) => {
|
||||
});
|
||||
|
||||
// Helpers to set/clear the Authorization header programmatically (call after Keycloak login)
|
||||
export function setAuthToken(token: string | null) {
|
||||
export function setAuthToken(token: string | null | undefined) {
|
||||
if (token) {
|
||||
api.defaults.headers.common["Authorization"] = `Bearer ${token}`;
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user