-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathglobal.d.ts
More file actions
40 lines (31 loc) · 719 Bytes
/
Copy pathglobal.d.ts
File metadata and controls
40 lines (31 loc) · 719 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
declare module 'openid-client' {
interface ClientOptions {
client_id: string;
client_secret: string;
}
interface AuthorizationOptions {
redirect_uri: string;
scope: string;
}
interface Claims {
sub: string;
email?: string; // may not be unique
name?: string;
picture?: string;
email_verified?: boolean;
}
interface TokenSet {
claims: Claims;
}
class Client {
constructor(opts: ClientOptions)
authorizationUrl(opts: AuthorizationOptions): string;
authorizationCallback(callback: string, query: {}): Promise<TokenSet>;
}
interface Issuer {
Client: typeof Client;
}
let Issuer: {
discover(url: string): Promise<Issuer>;
};
}