feat(auth): create extended api config placeholder

This commit is contained in:
Ilia Mashkov
2026-03-17 09:59:37 +03:00
parent 7cf8d463f6
commit a36922e1c7
2 changed files with 20 additions and 0 deletions

View File

@@ -0,0 +1,19 @@
import { api as baseApi } from "shared/config";
// Extend base API with authentication hooks
export const api = baseApi.extend({
hooks: {
beforeRequest: [
(request) => {
// Add authentication token to request headers
return request;
},
],
afterResponse: [
async (request, options, response) => {
// Refresh token logic
return response;
},
],
},
});

View File

@@ -0,0 +1 @@
export * from "./authApi/authApi";