Skip to content
Open
Changes from 1 commit
Commits
Show all changes
19 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
feat: removed unwanted OAuth1 typing definitions (#104)
  • Loading branch information
pradeepb2505 authored Nov 8, 2020
commit 85012e0e32c61b4580097863dc287a8c9d2fc23c
15 changes: 0 additions & 15 deletions index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,6 @@ declare class OAuthClient {
authorizeUri(params: OAuthClient.AuthorizeParams): string;
createError(e: Error, authResponse?: AuthResponse): OAuthClient.OAuthClientError;
createToken(uri: string): Promise<AuthResponse>;
generateOauth1Sign(params: OAuthClient.GenerateOAuth1SignParams): string;
getKeyFromJWKsURI(id_token: string, kid: string, request: Request): Promise<object | string>;
getPublicKey(modulus: string, exponent: string): string;
getToken(): Token;
Expand All @@ -71,7 +70,6 @@ declare class OAuthClient {
loadResponseFromJWKsURI(request: Request): Promise<Response>;
log(level: string, message: string, messageData: any): void;
makeApiCall(params?: OAuthClient.MakeApiCallParams): Promise<AuthResponse>;
migrate(params: OAuthClient.MigrateParams): Promise<AuthResponse>;
refresh(): Promise<AuthResponse>;
refreshUsingToken(refresh_token: string): Promise<AuthResponse>;
revoke(params?: OAuthClient.RevokeParams): Promise<AuthResponse>;
Expand Down Expand Up @@ -123,19 +121,6 @@ declare namespace OAuthClient {
url: string;
}

export interface MigrateParams extends GenerateOAuth1SignParams {
scope?: scopes | scopes[] | string;
}

export interface GenerateOAuth1SignParams {
oauth_consumer_key: string;
oauth_consumer_secret: string;
access_token: string;
access_secret: string;
method: 'GET' | 'POST';
uri: string;
}

export interface ValidateIdTokenParams {
id_token?: string;
}
Expand Down