The Affinidi Auth SDK Kernel is a foundational authentication library for building decentralized identity solutions on the Affinidi platform. Current stable version is 1.9.0, with monthly releases following semantic versioning. It provides secure token management, cryptographic operations, and authentication flow orchestration for React and React Native applications. Unlike generic auth SDKs, it is tightly integrated with Affinidi's decentralized identity protocols and includes built-in key management. Ships TypeScript types and requires react and react-native as peer dependencies.
npm install affinidi-auth-sdk-kernelNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Sets up Affinidi authentication with React, including configuration, provider, and login button using hooks.
Replace 'clientSecret' with 'clientId' in config objects.
Migrate to try-catch around login() or handle errors from useAuth().
Run 'npx react-native link @affinidi/affinidi-auth-sdk-kernel' for RN <0.60.
Handle 401 errors and re-initiate login flow.
Run 'npm install react react-native' and ensure bundler config resolves node_modules correctly.
Wrap the component with <AuthProvider> and ensure useAuth() is used inside the provider tree.
Run 'npx react-native link @affinidi/affinidi-auth-sdk-kernel' or rebuild the app.