mirror of
https://github.com/bubblecup-12/VogelSocialMedia.git
synced 2025-07-07 19:18:51 +00:00
tokens refresh when jwt is expired and added basic axios config
This commit is contained in:
parent
c48498af95
commit
fbf645ba0f
15 changed files with 470 additions and 289 deletions
|
@ -14,12 +14,10 @@ app.use(
|
|||
cors({
|
||||
origin: "http://localhost:3000",
|
||||
credentials: true,
|
||||
exposedHeaders: ["Authorization", "Refresh-Token"],
|
||||
})
|
||||
);
|
||||
app.use((req, res, next) => {
|
||||
res.header("Access-Control-Expose-Headers", "Authorization");
|
||||
next();
|
||||
});
|
||||
|
||||
// minIO config
|
||||
export const minioClient = new Client({
|
||||
endPoint: "localhost", // Replace with your MinIO server URL
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue