Skip to content

Commit

Permalink
fix: fix withauth always refresh
Browse files Browse the repository at this point in the history
  • Loading branch information
chowjustin committed Nov 7, 2024
1 parent c794c67 commit 6775331
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/hoc/withAuth.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ export default function withAuth<T>(
if (!user) {
const loadUser = async () => {
try {
const res = await api.get<ApiResponse<User>>("/users/");
const res = await api.get<ApiResponse<User>>("/users/me");

if (!res.data.data) {
toast.error("Sesi login tidak valid");
Expand Down

0 comments on commit 6775331

Please sign in to comment.