File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -142,12 +142,14 @@ const createAuthorizationCodeClient = (
142
142
* Method makes user of the `refreshTokens` method of the `AuthCodeAbstract` client
143
143
* to use the refresh token to get new tokens
144
144
* @param {SessionManager } sessionManager
145
+ * @param {boolean } [commitToSession=true] - Optional parameter, determines whether to commit the refreshed tokens to the session. Defaults to true.
145
146
* @returns {Promise<OAuth2CodeExchangeResponse> }
146
147
*/
147
148
const refreshTokens = async (
148
- sessionManager : SessionManager
149
+ sessionManager : SessionManager ,
150
+ commitToSession : boolean = true
149
151
) : Promise < OAuth2CodeExchangeResponse > => {
150
- return await client . refreshTokens ( sessionManager ) ;
152
+ return await client . refreshTokens ( sessionManager , commitToSession ) ;
151
153
} ;
152
154
153
155
/**
You can’t perform that action at this time.
0 commit comments