In hooks/auth.js file update the useSWR to: Copy Code const { data: user, error, revalidate } = useSWR('/api/user', () => axios .get('/api/user') .then(res ...
確定! 回上一頁