Skip to content

Commit 958f4ed

Browse files
committed
fix: only show production warning when explicity setting the 'useInsecureForRefreshToken'
1 parent 7338321 commit 958f4ed

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

lib/sessionManager/stores/localStorage.ts

+3-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,9 @@ export class LocalStorage<V extends string = StorageKeys>
1212
{
1313
constructor() {
1414
super();
15-
console.warn("LocalStorage store should not be used in production");
15+
if (storageSettings.useInsecureForRefreshToken) {
16+
console.warn("LocalStorage store should not be used in production");
17+
}
1618
}
1719

1820
private internalItems: Set<V | StorageKeys> = new Set<V>();

0 commit comments

Comments
 (0)