Abu Sayed
Musician | Singer | Lyricist | Composer | Music Producer | Web | Game | XR & Blockchain Developer
Tag Archives: useAuth
useAuth: AWS Amplify Auth + React Hooks = Simple Auth Administration

It is a quick submit offering a pattern implementation of AWS Amplify authentication management in a React app with hooks. tl;dr When Auth.signIn() succeeds, it units a cookie with session knowledge that may be accessed by Auth.currentSession(). This does not appear to be nicely documented, however it unlocks the flexibility to protect authentication state on…