React hooks for AWS Amplify authentication. Version 1.0.0 provides a set of hooks like useAuth, useSignIn, useSignUp, etc., wrapping Amplify Auth operations. Released as a single version with no updates since. Differentiates by offering hook-based API for Amplify Auth, tightly coupled with React lifecycle. Requires @aws-amplify/auth, @aws-amplify/core, amazon-cognito-identity-js, and react as peer dependencies. Ships TypeScript types.
npm install amplify-auth-hooksNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows basic usage of useAuth hook to get authentication state.
Call Amplify.configure() once at app root.
Use loading state to handle asynchronous auth check.
Upgrade to latest version for hooks support.
import Amplify from '@aws-amplify/core'; Amplify.configure(awsConfig);
import { useAuth } from 'amplify-auth-hooks';Use ES module import syntax.