From 98a0e592ea066a2e7c838d966c2224ac2e905aba Mon Sep 17 00:00:00 2001 From: emrgnt-cmplxty Date: Thu, 9 Jan 2025 16:51:43 -0800 Subject: [PATCH] get not post --- js/sdk/package.json | 2 +- js/sdk/src/v3/clients/users.ts | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/js/sdk/package.json b/js/sdk/package.json index 153279acc..582649a03 100644 --- a/js/sdk/package.json +++ b/js/sdk/package.json @@ -1,6 +1,6 @@ { "name": "r2r-js", - "version": "0.4.13", + "version": "0.4.14", "description": "", "main": "dist/index.js", "browser": "dist/index.browser.js", diff --git a/js/sdk/src/v3/clients/users.ts b/js/sdk/src/v3/clients/users.ts index c5b622363..8fa0ee2b5 100644 --- a/js/sdk/src/v3/clients/users.ts +++ b/js/sdk/src/v3/clients/users.ts @@ -542,7 +542,7 @@ export class UsersClient { @feature("users.oauthGoogleCallback") async oauthGoogleCallback(options: { code: string; state: string }): Promise { - return this.client.makeRequest("POST", "users/oauth/google/callback", { + return this.client.makeRequest("GET", "users/oauth/google/callback", { params: { code: options.code, state: options.state, @@ -552,7 +552,7 @@ export class UsersClient { @feature("users.oauthGithubCallback") async oauthGithubCallback(options: { code: string; state: string }): Promise { - return this.client.makeRequest("POST", "users/oauth/github/callback", { + return this.client.makeRequest("GET", "users/oauth/github/callback", { params: { code: options.code, state: options.state,