Is this correct way to do session error handling in tanstack router (React) - Better Auth