refresh token qoshildi
This commit is contained in:
@@ -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) => {
|
||||
|
||||
Reference in New Issue
Block a user