File tree 1 file changed +18
-3
lines changed
1 file changed +18
-3
lines changed Original file line number Diff line number Diff line change @@ -250,13 +250,14 @@ export class WebStorageStateStore implements StateStore {
250
250
}
251
251
252
252
export interface SigninResponse {
253
- new ( url : string ) : SigninResponse ;
253
+ new ( url : string , delimiter : string = '#' ) : SigninResponse ;
254
254
255
255
access_token : string ;
256
+ code : string ;
256
257
error : string ;
257
258
error_description : string ;
258
259
error_uri : string ;
259
- expires_at : number ;
260
+ expires_in : number ;
260
261
id_token : string ;
261
262
profile : any ;
262
263
scope : string ;
@@ -279,17 +280,31 @@ export interface SignoutResponse {
279
280
state : any ;
280
281
}
281
282
283
+ export interface UserSettings {
284
+ id_token : string ;
285
+ session_state : any ;
286
+ access_token : string ;
287
+ refresh_token : string ;
288
+ token_type : string ;
289
+ scope : string ;
290
+ profile : any ;
291
+ expires_at : number ;
292
+ state : any ;
293
+ }
294
+
282
295
export class User {
283
- constructor ( response : SigninResponse ) ;
296
+ constructor ( settings : UserSettings ) ;
284
297
285
298
id_token : string ;
286
299
session_state : any ;
287
300
access_token : string ;
301
+ refresh_token : string ;
288
302
token_type : string ;
289
303
scope : string ;
290
304
profile : any ;
291
305
expires_at : number ;
292
306
state : any ;
307
+
293
308
toStorageString ( ) : string ;
294
309
295
310
readonly expires_in : number | undefined ;
You can’t perform that action at this time.
0 commit comments