@types/oauth2-server
Advanced tools
Comparing version 3.0.7 to 3.0.8
// Type definitions for Node OAuth2 Server 3.0 | ||
// Project: https://github.com/oauthjs/node-oauth2-server | ||
// Definitions by: Robbie Van Gorkom <https://github.com/vangorra>, | ||
// Charles Irick <https://github.com/cirick> | ||
// Charles Irick <https://github.com/cirick>, | ||
// Daniel Fischer <https://github.com/d-fischer> | ||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped | ||
@@ -266,3 +267,3 @@ // TypeScript Version: 2.2 | ||
*/ | ||
validateScope?(user: User, client: Client, scope: string, callback?: Callback<string[] | Falsey>): Promise<string[] | Falsey>; | ||
validateScope?(user: User, client: Client, scope: string, callback?: Callback<string | Falsey>): Promise<string | Falsey>; | ||
} | ||
@@ -287,3 +288,3 @@ | ||
*/ | ||
validateScope?(user: User, client: Client, scope: string, callback?: Callback<string[] | Falsey>): Promise<string[] | Falsey>; | ||
validateScope?(user: User, client: Client, scope: string, callback?: Callback<string | Falsey>): Promise<string | Falsey>; | ||
} | ||
@@ -322,3 +323,3 @@ | ||
*/ | ||
validateScope?(user: User, client: Client, scope: string, callback?: Callback<string[] | Falsey>): Promise<string[] | Falsey>; | ||
validateScope?(user: User, client: Client, scope: string, callback?: Callback<string | Falsey>): Promise<string | Falsey>; | ||
} | ||
@@ -386,4 +387,37 @@ | ||
} | ||
class OAuthError extends Error { | ||
constructor(messageOrError: string | Error, properties?: object); | ||
/** | ||
* The HTTP error code. | ||
*/ | ||
code: number; | ||
/** | ||
* The OAuth error code. | ||
*/ | ||
name: string; | ||
/** | ||
* A human-readable error message. | ||
*/ | ||
message: string; | ||
} | ||
class AccessDeniedError extends OAuthError {} | ||
class InsufficientScopeError extends OAuthError {} | ||
class InvalidArgumentError extends OAuthError {} | ||
class InvalidClientError extends OAuthError {} | ||
class InvalidGrantError extends OAuthError {} | ||
class InvalidRequestError extends OAuthError {} | ||
class InvalidScopeError extends OAuthError {} | ||
class InvalidTokenError extends OAuthError {} | ||
class ServerError extends OAuthError {} | ||
class UnauthorizedClientError extends OAuthError {} | ||
class UnauthorizedRequestError extends OAuthError {} | ||
class UnsupportedGrantTypeError extends OAuthError {} | ||
class UnsupportedResponseTypeError extends OAuthError {} | ||
} | ||
export = OAuth2Server; |
{ | ||
"name": "@types/oauth2-server", | ||
"version": "3.0.7", | ||
"version": "3.0.8", | ||
"description": "TypeScript definitions for Node OAuth2 Server", | ||
@@ -16,2 +16,7 @@ "license": "MIT", | ||
"githubUsername": "cirick" | ||
}, | ||
{ | ||
"name": "Daniel Fischer", | ||
"url": "https://github.com/d-fischer", | ||
"githubUsername": "d-fischer" | ||
} | ||
@@ -28,4 +33,4 @@ ], | ||
}, | ||
"typesPublisherContentHash": "e45b091e2d2f07153448d87d18b96d9eba53cea47b08b8ed71b62ada3bcfd49a", | ||
"typesPublisherContentHash": "c2980d3e822d087ed409aa1700ad4bd407e159381b9cca6c4d900bc3f006bd61", | ||
"typeScriptVersion": "2.2" | ||
} |
@@ -11,3 +11,3 @@ # Installation | ||
Additional Details | ||
* Last updated: Fri, 01 Jun 2018 16:26:34 GMT | ||
* Last updated: Sat, 21 Jul 2018 02:05:50 GMT | ||
* Dependencies: express | ||
@@ -17,2 +17,2 @@ * Global values: none | ||
# Credits | ||
These definitions were written by Robbie Van Gorkom <https://github.com/vangorra>, Charles Irick <https://github.com/cirick>. | ||
These definitions were written by Robbie Van Gorkom <https://github.com/vangorra>, Charles Irick <https://github.com/cirick>, Daniel Fischer <https://github.com/d-fischer>. |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
15722
358