Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@types/oauth2-server

Package Overview
Dependencies
Maintainers
1
Versions
30
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@types/oauth2-server - npm Package Compare versions

Comparing version 3.0.8 to 3.0.9

42

oauth2-server/index.d.ts

@@ -126,3 +126,3 @@ // Type definitions for Node OAuth2 Server 3.0

*/
scope?: string;
scope?: string | string[];

@@ -204,3 +204,3 @@ /**

*/
generateAccessToken?(client: Client, user: User, scope: string, callback?: Callback<string>): Promise<string>;
generateAccessToken?(client: Client, user: User, scope: string | string[], callback?: Callback<string>): Promise<string>;

@@ -217,3 +217,3 @@ /**

*/
saveToken(token: Token, client: Client, user: User, callback?: Callback<Token>): Promise<Token>;
saveToken(token: Token, client: Client, user: User, callback?: Callback<Token>): Promise<Token | Falsey>;
}

@@ -226,3 +226,3 @@

*/
getAccessToken(accessToken: string, callback?: Callback<Token>): Promise<Token>;
getAccessToken(accessToken: string, callback?: Callback<Token>): Promise<Token | Falsey>;

@@ -233,3 +233,3 @@ /**

*/
verifyScope(token: Token, scope: string, callback?: Callback<boolean>): Promise<boolean>;
verifyScope(token: Token, scope: string | string[], callback?: Callback<boolean>): Promise<boolean>;
}

@@ -242,3 +242,3 @@

*/
generateRefreshToken?(client: Client, user: User, scope: string, callback?: Callback<string>): Promise<string>;
generateRefreshToken?(client: Client, user: User, scope: string | string[], callback?: Callback<string>): Promise<string>;

@@ -249,3 +249,3 @@ /**

*/
generateAuthorizationCode?(client: Client, user: User, scope: string, callback?: Callback<string>): Promise<string>;
generateAuthorizationCode?(client: Client, user: User, scope: string | string[], callback?: Callback<string>): Promise<string>;

@@ -256,3 +256,3 @@ /**

*/
getAuthorizationCode(authorizationCode: string, callback?: Callback<AuthorizationCode>): Promise<AuthorizationCode>;
getAuthorizationCode(authorizationCode: string, callback?: Callback<AuthorizationCode>): Promise<AuthorizationCode | Falsey>;

@@ -263,3 +263,3 @@ /**

*/
saveAuthorizationCode(code: AuthorizationCode, client: Client, user: User, callback?: Callback<AuthorizationCode>): Promise<AuthorizationCode>;
saveAuthorizationCode(code: AuthorizationCode, client: Client, user: User, callback?: Callback<AuthorizationCode>): Promise<AuthorizationCode | Falsey>;

@@ -276,3 +276,3 @@ /**

*/
validateScope?(user: User, client: Client, scope: string, callback?: Callback<string | Falsey>): Promise<string | Falsey>;
validateScope?(user: User, client: Client, scope: string | string[], callback?: Callback<string | Falsey>): Promise<string | string[] | Falsey>;
}

@@ -285,3 +285,3 @@

*/
generateRefreshToken?(client: Client, user: User, scope: string, callback?: Callback<string>): Promise<string>;
generateRefreshToken?(client: Client, user: User, scope: string | string[], callback?: Callback<string>): Promise<string>;

@@ -298,3 +298,3 @@ /**

*/
validateScope?(user: User, client: Client, scope: string, callback?: Callback<string | Falsey>): Promise<string | Falsey>;
validateScope?(user: User, client: Client, scope: string | string[], callback?: Callback<string | Falsey>): Promise<string | string[] | Falsey>;
}

@@ -307,3 +307,3 @@

*/
generateRefreshToken?(client: Client, user: User, scope: string, callback?: Callback<string>): Promise<string>;
generateRefreshToken?(client: Client, user: User, scope: string | string[], callback?: Callback<string>): Promise<string>;

@@ -314,3 +314,3 @@ /**

*/
getRefreshToken(refreshToken: string, callback?: Callback<RefreshToken>): Promise<RefreshToken>;
getRefreshToken(refreshToken: string, callback?: Callback<RefreshToken>): Promise<RefreshToken | Falsey>;

@@ -321,3 +321,3 @@ /**

*/
revokeToken(token: Token, callback?: Callback<boolean>): Promise<boolean>;
revokeToken(token: RefreshToken | Token, callback?: Callback<boolean>): Promise<boolean>;
}

@@ -336,3 +336,3 @@

*/
validateScope?(user: User, client: Client, scope: string, callback?: Callback<string | Falsey>): Promise<string | Falsey>;
validateScope?(user: User, client: Client, scope: string | string[], callback?: Callback<string | Falsey>): Promise<string | string[] | Falsey>;
}

@@ -355,4 +355,4 @@

id: string;
redirectUris?: string[];
grants: string[];
redirectUris?: string | string[];
grants: string | string[];
accessTokenLifetime?: number;

@@ -370,3 +370,3 @@ refreshTokenLifetime?: number;

redirectUri: string;
scope?: string;
scope?: string | string[];
client: Client;

@@ -385,3 +385,3 @@ user: User;

refreshTokenExpiresAt?: Date;
scope?: string;
scope?: string | string[];
client: Client;

@@ -398,3 +398,3 @@ user: User;

refreshTokenExpiresAt?: Date;
scope?: string;
scope?: string | string[];
client: Client;

@@ -401,0 +401,0 @@ user: User;

{
"name": "@types/oauth2-server",
"version": "3.0.8",
"version": "3.0.9",
"description": "TypeScript definitions for Node OAuth2 Server",

@@ -32,4 +32,4 @@ "license": "MIT",

},
"typesPublisherContentHash": "c2980d3e822d087ed409aa1700ad4bd407e159381b9cca6c4d900bc3f006bd61",
"typesPublisherContentHash": "24242bfc85affdff14332e3d0854b951be3e4c11b09fce5ab0045d5eb0537f3b",
"typeScriptVersion": "2.2"
}

@@ -11,3 +11,3 @@ # Installation

Additional Details
* Last updated: Sat, 21 Jul 2018 02:05:50 GMT
* Last updated: Thu, 27 Sep 2018 23:26:03 GMT
* Dependencies: express

@@ -14,0 +14,0 @@ * Global values: none

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc