Skip to content

Commit b7b78ee

Browse files
Fix User type
1 parent 4d7740f commit b7b78ee

File tree

1 file changed

+10
-5
lines changed

1 file changed

+10
-5
lines changed

index.d.ts

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -250,13 +250,14 @@ export class WebStorageStateStore implements StateStore {
250250
}
251251

252252
export interface SigninResponse {
253-
new (url: string): SigninResponse;
253+
new (url: string, delimiter: string = '#'): SigninResponse;
254254

255255
access_token: string;
256+
code: string;
256257
error: string;
257258
error_description: string;
258259
error_uri: string;
259-
expires_at: number;
260+
expires_in: number;
260261
id_token: string;
261262
profile: any;
262263
scope: string;
@@ -279,17 +280,21 @@ export interface SignoutResponse {
279280
state: any;
280281
}
281282

282-
export class User {
283-
constructor(response: SigninResponse);
284-
283+
export interface UserSettings {
285284
id_token: string;
286285
session_state: any;
287286
access_token: string;
287+
refresh_token: string;
288288
token_type: string;
289289
scope: string;
290290
profile: any;
291291
expires_at: number;
292292
state: any;
293+
}
294+
295+
export class User extends UserSettings {
296+
constructor(settings: UserSettings);
297+
293298
toStorageString(): string;
294299

295300
readonly expires_in: number | undefined;

0 commit comments

Comments
 (0)