Skip to content

Commit 0fc27ac

Browse files
authored
Merge pull request DuendeArchive#165 from merijndejonge/Support_change_store_in_WebStorageStateStore
Support changing the store in WebStorageStateStore by adding proper TypeScript declarations
2 parents 4f6d8e2 + 2a043d6 commit 0fc27ac

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

oidc-client.d.ts

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,6 +135,7 @@ declare namespace Oidc {
135135

136136
signoutRedirect(args?: any): Promise<any>;
137137
signoutRedirectCallback(url?: string): Promise<any>;
138+
signoutPopup(args?: any): Promise<any>;
138139

139140
querySessionStatus(args?: any): Promise<any>;
140141

@@ -168,7 +169,15 @@ declare namespace Oidc {
168169
iframeNavigator?: any;
169170
userStore?: any;
170171
}
171-
interface WebStorageStateStore {
172+
173+
interface WebStorageStateStoreSettings {
174+
prefix?: string;
175+
store?: any;
176+
}
177+
178+
class WebStorageStateStore {
179+
constructor(settings: WebStorageStateStoreSettings);
180+
172181
set(key: string, value: any): Promise<void>;
173182

174183
get(key: string): Promise<any>;

0 commit comments

Comments
 (0)