https://github.com/skorfmann/atproto-oauth-js
https://github.com/skorfmann/atproto-oauth-js
Last synced: 6 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/skorfmann/atproto-oauth-js
- Owner: skorfmann
- Created: 2024-12-25T17:01:47.000Z (10 months ago)
- Default Branch: main
- Last Pushed: 2024-12-25T17:07:41.000Z (10 months ago)
- Last Synced: 2025-04-11T23:52:35.738Z (6 months ago)
- Language: TypeScript
- Size: 24.4 KB
- Stars: 4
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# ATProto OAuth JS
This is a library for handling ATProto OAuth flows, particularly targeting Cloudflare Workers and similar non node.js environments. If you're using node.js, you should use the [@atproto/oauth-client-node](https://www.npmjs.com/package/@atproto/oauth-client-node) library instead.
It's a work in progress and may not work as expected. It hasn't been tested in production yet. It's likely to change. And probably it's not a secure example nor a secure implementation.
## Examples
- [Cloudflare Worker HonoJS](examples/cloudflare-worker-honojs/)
## Library
- [atproto-oauth-js](packages/atproto-oauth-js/)
## Credits
This was mainly extracted from the [frontpage.fyi](https://github.com/likeandscribe/frontpage/blob/5d362ae011b4ca83b15a30434468ac7b8b667497/packages/frontpage/lib/auth.ts) codebase.
Fruther inspiration can be found in https://github.com/pilcrowonpaper/atproto-oauth-example/