@owf/identity-common

The base package of the Identity Common TypeScript project, providing common types and utilities for identity applications.
Installation
npm install @owf/identity-common
pnpm add @owf/identity-common
yarn add @owf/identity-common
Usage
import { } from '@owf/identity-common'
Platform Support
This library is platform agnostic and works in:
- ✅ Node.js (>=20)
- ✅ Browsers (modern browsers with ES2020 support)
- ✅ React Native
Requirements
Your environment must provide:
URL and URLSearchParams implementations
- A global
fetch implementation (or provide it via callbacks)
- Global
TextEncoder and TextDecoder implementations
React Native
When using these libraries in React Native you may need to add a polyfill for TextDecoder.
You can confirm this by checking if global.TextDecoder is available. It should be available for React Native > 0.85 or Expo SDK > 52.
If it is not available, make sure to add a polyfill like this one.
API Reference
Documentation will be added as the API is developed.
Related Packages
This package is part of the Identity Common TypeScript project:
@owf/jose - JOSE/JWT implementation (planned)
@owf/cose - COSE/CWT implementation (planned)
@owf/x509 - X.509 certificate utilities (planned)
Contributing
See the Contributing Guide for details on how to contribute to this project.
License
This project is licensed under the Apache License Version 2.0 (Apache-2.0).