UNPKG

@dankupfer/create-dn-starter

Version:

Interactive CLI for creating modular React Native apps with Expo

52 lines (39 loc) 1.6 kB
# Authentication Module **Category:** Core **Dependencies:** None **Platform:** iOS, Android, Web ## Overview Basic authentication module with mock login/logout functionality. Currently implements simple forms with plans for biometric and microservice integration. ## Quick Start ```typescript import AuthenticationModule from './src/modules/core/authentication'; // Basic usage <AuthenticationModule /> // Access auth API import { metadata } from './src/modules/core/authentication'; const authAPI = metadata.api; await authAPI.login('user@example.com', 'password'); ``` ## Key Features - **Mock Authentication**: Returns success for any login attempt - **Authentication API**: Login/logout functions exportable to other modules - **Simple Form**: Basic username/password input (minimal UI) - **Module Metadata**: Exposes auth functions via metadata.api ## Current Status ### ✅ Completed - Basic module structure and mock API - Simple form component (minimal) ### 📋 TODO - **Form UI**: Complete login/register forms with validation - **Biometric Auth**: Face ID / Touch ID integration - **Microservice Integration**: Connect to real authentication backend - **Security**: Input validation, token storage, session management - **Social Login**: Google / Apple / Facebook integration ## Known Limitations - No real authentication (mock responses only) - No form validation or error handling - No token persistence or session management - Always returns success for any input ## Dependencies - React Native core components only - Future: react-native-biometrics, react-native-keychain