indeed there was a typo. Every
useAuth was actually a
useUser , i just c/p it from an actual project where it was named differently.
The whole point of the example was to see how you would utilise the items defined above (
useUser , etc.) so that’s why I skipped the definition of those because I thought it would be obvious that they were referring to all the previous work that was done in this article. Thus the uses of
useAuth (which was a typo for
useUser) was referring to the module implemented in the previous gist.
Thanks for pointing the typo out, it’s now fixed :)