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 11export interface AuthConfiguration extends BaseAuthConfiguration {
22 scopes : string [ ] ;
33 redirectUrl : string ;
4- aditionalParameters ?: object ;
4+ aditionalParameters ?: { [ name : string ] : any } ;
55 }
66
77 export interface BaseAuthConfiguration {
@@ -17,25 +17,23 @@ export interface AuthConfiguration extends BaseAuthConfiguration {
1717 export interface AuthorizeResult {
1818 accessToken : string ;
1919 accessTokenExpirationDate : string ;
20- additionalParameters : object ;
20+ aditionalParameters ?: { [ name : string ] : any } ;
2121 idToken : string ;
2222 refreshToken : string ;
2323 tokenType : string ;
2424 }
2525
26- export interface RevokeOptions {
26+ export interface RevokeConfiguration {
2727 tokenToRevoke : string ;
2828 sendClientId ?: boolean ;
2929 }
3030
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 > ;
3236
33- export function refresh (
34- properties : AuthConfiguration ,
35- { refreshToken : string }
36- ) : Promise < AuthorizeResult > ;
37+ export function refresh ( config : AuthConfiguration , refreshConfig : RefreshConfiguration ) : Promise < AuthorizeResult > ;
3738
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