https://github.com/zalweny26/aurora
PSD2 auth-related utilities
https://github.com/zalweny26/aurora
Last synced: 2 months ago
JSON representation
PSD2 auth-related utilities
- Host: GitHub
- URL: https://github.com/zalweny26/aurora
- Owner: zAlweNy26
- License: mit
- Created: 2024-10-08T20:30:09.000Z (8 months ago)
- Default Branch: main
- Last Pushed: 2024-10-08T21:33:53.000Z (8 months ago)
- Last Synced: 2025-03-28T19:14:42.933Z (2 months ago)
- Language: TypeScript
- Size: 40 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Aurora
Aurora is a PSD2 auth-related library for JavaScript/TypeScript. It's light weight, fully-typed, and runtime-agnostic[\*](#issues).
The library is based on the [_Berlin Group_](https://www.berlin-group.org/)'s standard "[NextGenPSD2](https://www.berlin-group.org/psd2-access-to-bank-accounts)", used to communicate with European Banks since the release of the standard [**PSD2**](https://en.wikipedia.org/wiki/Payment_Services_Directive) (Revised Payment Services Directive).
The service is meant to be deployed beside other services which need access to bank accounts.
## Installation
```bash
# Node:
npm i @danyalwe/aurora
# Bun:
bun i @danyalwe/aurora
```### Polyfill
If you're using Node.js 18 and below, you'll need to polyfill the Web Crypto API. This is not required in Node.js 20, Bun, Deno, and Cloudflare Workers.
```ts
import { webcrypto } from 'node:crypto'globalThis.crypto = webcrypto as Crypto
```### Issues
- [ ] Bun runtime support (caused by _**X509Certificate**_).
## Credits
- [Arctic](https://github.com/pilcrowOnPaper/arctic) for the structure style.
- [Oslo](https://github.com/pilcrowonpaper/oslo) for the OAuth2 helpers.