π Description
Hi everyone ππ»ββοΈ
While following the Next.js tutorial, I noticed a deprecated method being used in the useAuth hook.
Current code:
const logout = async (): Promise<void> => {
await account.deleteSession('current');
setCurrent(null);
router.push('/');
};
as deleteSession method now expects an object parameter, should be updated to
await account.deleteSession({ sessionId: 'current' });
Please confirm if Iβm correct, and feel free to assign this to me. Even though itβs a small change.
π Have you spent some time to check if this issue has been raised before?
π’ Have you read the Code of Conduct?
π Description
Hi everyone ππ»ββοΈ
While following the Next.js tutorial, I noticed a deprecated method being used in the useAuth hook.
Current code:
as deleteSession method now expects an object parameter, should be updated to
Please confirm if Iβm correct, and feel free to assign this to me. Even though itβs a small change.
π Have you spent some time to check if this issue has been raised before?
π’ Have you read the Code of Conduct?