Skip to content

Commit

Permalink
Merge pull request #1795 from SciPhi-AI/feature/revert-to-get-for-cal…
Browse files Browse the repository at this point in the history
…lbacks

get not post
  • Loading branch information
emrgnt-cmplxty authored Jan 10, 2025
2 parents c1fe474 + 98a0e59 commit 47828e2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion js/sdk/package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
4 changes: 2 additions & 2 deletions js/sdk/src/v3/clients/users.ts
Original file line number Diff line number Diff line change
Expand Up @@ -542,7 +542,7 @@ export class UsersClient {

@feature("users.oauthGoogleCallback")
async oauthGoogleCallback(options: { code: string; state: string }): Promise<any> {
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,
Expand All @@ -552,7 +552,7 @@ export class UsersClient {

@feature("users.oauthGithubCallback")
async oauthGithubCallback(options: { code: string; state: string }): Promise<any> {
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,
Expand Down

0 comments on commit 47828e2

Please sign in to comment.