Skip to content

Commit 599b858

Browse files
authored
Merge pull request DuendeArchive#747 from VincentLanglet/fixType
Fix User definition (index.d.ts)
2 parents 4d7740f + fad78dd commit 599b858

File tree

1 file changed

+18
-3
lines changed

1 file changed

+18
-3
lines changed

index.d.ts

Lines changed: 18 additions & 3 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,31 @@ export interface SignoutResponse {
279280
state: any;
280281
}
281282

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+
282295
export class User {
283-
constructor(response: SigninResponse);
296+
constructor(settings: UserSettings);
284297

285298
id_token: string;
286299
session_state: any;
287300
access_token: string;
301+
refresh_token: string;
288302
token_type: string;
289303
scope: string;
290304
profile: any;
291305
expires_at: number;
292306
state: any;
307+
293308
toStorageString(): string;
294309

295310
readonly expires_in: number | undefined;

0 commit comments

Comments
 (0)