Commit 6012806 1 parent 5c2089f commit 6012806 Copy full SHA for 6012806
File tree 1 file changed +3
-3
lines changed
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -19,7 +19,7 @@ interface ExchangeAuthCodeParams {
19
19
domain : string ;
20
20
clientId : string ;
21
21
redirectURL : string ;
22
- autoReferesh ?: boolean ;
22
+ autoRefresh ?: boolean ;
23
23
}
24
24
25
25
interface ExchangeAuthCodeResult {
@@ -35,7 +35,7 @@ export const exchangeAuthCode = async ({
35
35
domain,
36
36
clientId,
37
37
redirectURL,
38
- autoReferesh = false ,
38
+ autoRefresh = false ,
39
39
} : ExchangeAuthCodeParams ) : Promise < ExchangeAuthCodeResult > => {
40
40
const state = urlParams . get ( "state" ) ;
41
41
const code = urlParams . get ( "code" ) ;
@@ -130,7 +130,7 @@ export const exchangeAuthCode = async ({
130
130
[ StorageKeys . refreshToken ] : data . refresh_token ,
131
131
} ) ;
132
132
133
- if ( autoReferesh ) {
133
+ if ( autoRefresh ) {
134
134
setRefreshTimer ( data . expires_in , async ( ) => {
135
135
refreshToken ( domain , clientId ) ;
136
136
} ) ;
You can’t perform that action at this time.
0 commit comments