Skip to content

Commit

Permalink
token set on cookie from server on manual login api
Browse files Browse the repository at this point in the history
  • Loading branch information
Md-Rubel-Ahmed-Rana committed Jul 4, 2024
1 parent 9dddb53 commit 3dd799b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion frontend/src/components/pages/login/Login.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ const Login = () => {
const onSubmit: SubmitHandler<FormData> = async (data) => {
const result: any = await loginUser(data);
if (result?.data?.success) {
Cookies.set("tmAccessToken", result?.data?.data, { expires: 6 });
// Cookies.set("tmAccessToken", result?.data?.data, { expires: 6 });
Swal.fire({
position: "center",
icon: "success",
Expand Down

0 comments on commit 3dd799b

Please sign in to comment.