{"repo":"nDimensional/atproto-oauth-client-cloudflare-workers","free":true,"listed":false,"github":"https://github.com/nDimensional/atproto-oauth-client-cloudflare-workers","clone":"git clone https://github.com/nDimensional/atproto-oauth-client-cloudflare-workers.git","description":"ATProto OAuth Client for Cloudflare Workers","language":"TypeScript","stars":26,"topics":["atproto","cloudflare-workers","oauth","oauth-client"],"license":"MIT","category":"auth-billing-email","readme_excerpt":"atproto-oauth-client-cloudflare-workers This library contains local patched copies of - @atproto/oauth-client-node - @atproto/oauth-client - @atproto-labs/handle-resolver-node - @atproto-labs/handle-resolver - @atproto-labs/identity-resolver - @atproto-labs/did-resolver that are compatible with the Cloudflare Workers edge runtime. The only changes applied throughout are: 1. replacing request.cache: \"no-cache\" with request.headers[\"cache-control\"]: \"no-cache\" 2. replacing request.redirect: \"error\" with request.redirect: \"follow\" DNS handle resolution requires the nodejs compat compatibility flag. Usage WorkersOAuthClient works mostly as a drop-in replacement for NodeOAuthClient . By default, like NodeOAuthClient , this will use an in-memory store for the handle cache and DID cache. This doesn't make much sense for the workers environment, since memory is reset after each invocation. To use Cloudflare KV namespaces for your handle and DID caches, create DidCacheKV and HandleCacheKV instances and pass them to the WorkersOAuthClient constructor. Similarly, to use KV namespaces for the oauth state store and oauth session store, (which are required), import and provide StateStoreKV and SessionStoreKV instances.","default_branch":null,"files":null,"tree":[],"storefront":"/r/nDimensional","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/nDimensional/atproto-oauth-client-cloudflare-workers/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}