https://github.com/tmpim/tmpauth-client-js
tmpauth client for js
https://github.com/tmpim/tmpauth-client-js
Last synced: 5 months ago
JSON representation
tmpauth client for js
- Host: GitHub
- URL: https://github.com/tmpim/tmpauth-client-js
- Owner: tmpim
- License: mit
- Created: 2022-12-19T01:17:45.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2023-05-01T02:31:29.000Z (about 3 years ago)
- Last Synced: 2025-10-19T13:35:31.893Z (8 months ago)
- Language: TypeScript
- Size: 251 KB
- Stars: 0
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 
simple abstract tmpauth client for javascript
runs anywhere, minimal dependencies, 100% test coverage
## supported runtimes
- cloudflare workers ([example](https://github.com/tmpim/tmpauth-client-js/tree/master/examples/cloudflare-workers-hono/hono.ts))
- nodejs ([example](https://github.com/tmpim/tmpauth-client-js/tree/master/examples/nodejs-express/app.ts))
- aws lambda ([example](https://github.com/tmpim/tmpauth-client-js/tree/master/examples/aws-lambda-api-gateway/app.ts))
- bun (no example cuz bun is a meme)
## supported web frameworks
- hono ([example](https://github.com/tmpim/tmpauth-client-js/tree/master/examples/cloudflare-workers-hono/hono.ts))
- express ([example](https://github.com/tmpim/tmpauth-client-js/tree/master/examples/nodejs-express/app.ts))
- api gateway ([example](https://github.com/tmpim/tmpauth-client-js/tree/master/examples/aws-lambda-api-gateway/app.ts))
- itty router (maybe later)
## supported identity caches
- cloudflare workers kv ([example](https://github.com/tmpim/tmpauth-client-js/blob/master/examples/cloudflare-workers-hono/hono.ts#L16))
- dynamodb ([example](https://github.com/tmpim/tmpauth-client-js/tree/master/examples/aws-lambda-api-gateway/app.ts#L12))
## todo (prs welcome)
- more identity cache implementations
- memory
- redis
- more web frameworks / examples thereof
- status endpoint