Skip to content

Commit 6012806

Browse files
committed
fix: correct incorrect spelling
1 parent 5c2089f commit 6012806

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lib/utils/exchangeAuthCode.ts

+3-3
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ interface ExchangeAuthCodeParams {
1919
domain: string;
2020
clientId: string;
2121
redirectURL: string;
22-
autoReferesh?: boolean;
22+
autoRefresh?: boolean;
2323
}
2424

2525
interface ExchangeAuthCodeResult {
@@ -35,7 +35,7 @@ export const exchangeAuthCode = async ({
3535
domain,
3636
clientId,
3737
redirectURL,
38-
autoReferesh = false,
38+
autoRefresh = false,
3939
}: ExchangeAuthCodeParams): Promise<ExchangeAuthCodeResult> => {
4040
const state = urlParams.get("state");
4141
const code = urlParams.get("code");
@@ -130,7 +130,7 @@ export const exchangeAuthCode = async ({
130130
[StorageKeys.refreshToken]: data.refresh_token,
131131
});
132132

133-
if (autoReferesh) {
133+
if (autoRefresh) {
134134
setRefreshTimer(data.expires_in, async () => {
135135
refreshToken(domain, clientId);
136136
});

0 commit comments

Comments
 (0)