File tree Expand file tree Collapse file tree 1 file changed +10
-12
lines changed Expand file tree Collapse file tree 1 file changed +10
-12
lines changed Original file line number Diff line number Diff line change 1
1
export interface AuthConfiguration extends BaseAuthConfiguration {
2
2
scopes : string [ ] ;
3
3
redirectUrl : string ;
4
- aditionalParameters ?: object ;
4
+ aditionalParameters ?: { [ name : string ] : any } ;
5
5
}
6
6
7
7
export interface BaseAuthConfiguration {
@@ -17,25 +17,23 @@ export interface AuthConfiguration extends BaseAuthConfiguration {
17
17
export interface AuthorizeResult {
18
18
accessToken : string ;
19
19
accessTokenExpirationDate : string ;
20
- additionalParameters : object ;
20
+ aditionalParameters ?: { [ name : string ] : any } ;
21
21
idToken : string ;
22
22
refreshToken : string ;
23
23
tokenType : string ;
24
24
}
25
25
26
- export interface RevokeOptions {
26
+ export interface RevokeConfiguration {
27
27
tokenToRevoke : string ;
28
28
sendClientId ?: boolean ;
29
29
}
30
30
31
- export function authorize ( properties : AuthConfiguration ) : Promise < AuthorizeResult > ;
31
+ export interface RefreshConfiguration {
32
+ refreshToken : string ;
33
+ }
34
+
35
+ export function authorize ( config : AuthConfiguration ) : Promise < AuthorizeResult > ;
32
36
33
- export function refresh (
34
- properties : AuthConfiguration ,
35
- { refreshToken : string }
36
- ) : Promise < AuthorizeResult > ;
37
+ export function refresh ( config : AuthConfiguration , refreshConfig : RefreshConfiguration ) : Promise < AuthorizeResult > ;
37
38
38
- export function revoke (
39
- properties : BaseAuthConfiguration ,
40
- options : RevokeOptions
41
- ) : Promise < void > ;
39
+ export function revoke ( config : BaseAuthConfiguration , refreshConfig : RevokeConfiguration ) : Promise < void > ;
You can’t perform that action at this time.
0 commit comments