@cirrobio/react-auth
v0.0.2
Published
Provides authentication configuration and components for React applications using Cirro.
Downloads
14
Readme
@cirrobio/react-auth
React-based authentication components and context providers for Cirro-based applications.
Exports
Providers
AuthenticationContextProviderProvides authentication state and user info to the React component tree.
Hooks
useAuthenticatorCustom React hook to access authentication state, user info, and sign-out functionality.
Components
LoginModalModal dialog for user login (wraps the
LoginOptionscomponent).LoginOptionsUI for selecting login methods.
LoginWrapperWrapper component to check authentication state and render children accordingly. If not authenticated, it displays the
LoginModal.
Auth Providers
AmplifyAuthProviderHandles user authentication using the AWS Amplify library.
StaticInteractiveAuthTokenProviderStatic token-based authentication provider for testing or service accounts.
