kavachos 0.1.3 → 0.1.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -5018,7 +5018,7 @@ function createOAuthModule(db, config) {
5018
5018
  throw new Error("OAuth callback: state has expired. Restart the authorization flow.");
5019
5019
  }
5020
5020
  await db.delete(oauthStates).where(eq(oauthStates.state, state));
5021
- const tokens = await provider.exchangeCode(stateRow.codeVerifier, code, redirectUri);
5021
+ const tokens = await provider.exchangeCode(code, stateRow.codeVerifier, redirectUri);
5022
5022
  const userInfo = await provider.getUserInfo(tokens.accessToken);
5023
5023
  const existingRows = await db.select().from(oauthAccounts).where(
5024
5024
  and(