Skip to content

Commit 4f0e74b

Browse files
committed
fix: await removing storage items
1 parent c78f029 commit 4f0e74b

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

lib/sessionManager/utils.test.ts

-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
// utils.test.ts
21
import { splitString } from "./utils";
32
import { describe, expect, it } from "vitest";
43

lib/utils/exchangeAuthCode.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ export const exchangeAuthCode = async ({
100100
[StorageKeys.refreshToken]: data.refresh_token,
101101
});
102102

103-
activeStorage.removeItems(StorageKeys.state, StorageKeys.codeVerifier);
103+
await activeStorage.removeItems(StorageKeys.state, StorageKeys.codeVerifier);
104104

105105
// Clear all url params
106106
const url = new URL(window.location.toString());

0 commit comments

Comments
 (0)