@atproto/xrpc-server 0.1.0 → 0.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/auth.d.ts ADDED
@@ -0,0 +1,15 @@
1
+ import * as crypto from '@atproto/crypto';
2
+ declare type ServiceJwtParams = {
3
+ iss: string;
4
+ aud: string;
5
+ exp?: number;
6
+ keypair: crypto.Keypair;
7
+ };
8
+ export declare const createServiceJwt: (params: ServiceJwtParams) => Promise<string>;
9
+ export declare const createServiceAuthHeaders: (params: ServiceJwtParams) => Promise<{
10
+ headers: {
11
+ authorization: string;
12
+ };
13
+ }>;
14
+ export declare const verifyJwt: (jwtStr: string, ownDid: string, getSigningKey: (did: string) => Promise<string>) => Promise<string>;
15
+ export {};
package/dist/index.d.ts CHANGED
@@ -1,3 +1,4 @@
1
1
  export * from './types';
2
+ export * from './auth';
2
3
  export * from './server';
3
4
  export * from './stream';