refresh token qoshildi

This commit is contained in:
Samandar Turgunboyev
2025-12-29 11:45:17 +05:00
parent 1389750ddd
commit 6370a118fe
4 changed files with 67 additions and 6 deletions

View File

@@ -1,5 +1,5 @@
import { auth_pai } from "@/features/auth/lib/api";
import { saveToken } from "@/shared/lib/cookie";
import { saveRefToken, saveToken } from "@/shared/lib/cookie";
import { Button } from "@/shared/ui/button";
import {
Card,
@@ -41,6 +41,7 @@ const AuthLogin = () => {
});
saveToken(res.data.data.access);
saveRefToken(res.data.data.refresh);
navigate("dashboard");
},
onError: (err: AxiosError) => {