Skip to content
This repository was archived by the owner on Jan 20, 2024. It is now read-only.

Commit f07cf6a

Browse files
ilkkablakeembrey
authored andcommitted
Tweak type declaration to match JS API (#41)
1 parent 9059d36 commit f07cf6a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

index.d.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ declare class ClientOAuth2 {
55
credentials: ClientOAuth2.CredentialsFlow;
66
jwt: ClientOAuth2.JwtBearerFlow;
77

8-
constructor(options: ClientOAuth2.Options, request: ClientOAuth2.Request);
8+
constructor(options: ClientOAuth2.Options, request?: ClientOAuth2.Request);
99

1010
createToken(data: ClientOAuth2.Data): ClientOAuth2.Token;
1111
createToken(accessToken: string, data: ClientOAuth2.Data): ClientOAuth2.Token;
@@ -24,7 +24,7 @@ declare namespace ClientOAuth2 {
2424
accessTokenUri?: string
2525
authorizationUri?: string
2626
redirectUri?: string
27-
scopes?: string
27+
scopes?: string[]
2828
state?: string
2929
body?: {
3030
[key: string]: string | string[];

0 commit comments

Comments
 (0)