@types/oauth2-server
Advanced tools
Comparing version 3.0.8 to 3.0.9
@@ -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 |
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
15976