a collection of lightweight TypeScript packages for AT Protocol, the protocol powering Bluesky
atproto bluesky typescript npm
101
fork

Configure Feed

Select the types of activity you want to include in your feed.

refactor(oauth-browser-client): remove redundant check before request instantiation

Mary 1fd2796a 0b11d773

+6 -1
+5
.changeset/eighty-news-report.md
··· 1 + --- 2 + '@atcute/oauth-browser-client': patch 3 + --- 4 + 5 + remove redundant check before request instantiation
+1 -1
packages/oauth/browser-client/lib/dpop.ts
··· 62 62 const sign = createDPoPSignage(dpopKey); 63 63 64 64 return async (input, init) => { 65 - const request: Request = init == null && input instanceof Request ? input : new Request(input, init); 65 + const request = new Request(input, init); 66 66 67 67 const authorizationHeader = request.headers.get('authorization'); 68 68 const ath = authorizationHeader?.startsWith('DPoP ')