Skip to content

Commit

Permalink
fixes example app code
Browse files Browse the repository at this point in the history
  • Loading branch information
rishabhpoddar committed Oct 4, 2024
1 parent 657d5b9 commit 4934209
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
5 changes: 4 additions & 1 deletion examples/with-thirdparty/apple.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,13 @@ export const performAppleLogin = async (): Promise<boolean> => {

const response = await fetch(API_DOMAIN + "/auth/signinup", {
method: "POST",
headers: {
'Content-Type': 'application/json; charset=utf-8'
},
body: JSON.stringify({
thirdPartyId: "apple",
redirectURIInfo: {
redirectURIOnProviderDashboard: "",
redirectURIOnProviderDashboard: "https://example.com", // this value doesn't matter cause it's mobile login, and Google doesn't check it, but our APIs need some value for it.
redirectURIQueryParams: {
code: appleAuthRequestResponse.authorizationCode,
},
Expand Down
5 changes: 4 additions & 1 deletion examples/with-thirdparty/google.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,13 @@ export const performGoogleSignIn = async (): Promise<boolean> => {

const response = await fetch(API_DOMAIN + "/auth/signinup", {
method: "POST",
headers: {
'Content-Type': 'application/json; charset=utf-8'
},
body: JSON.stringify({
thirdPartyId: "google",
redirectURIInfo: {
redirectURIOnProviderDashboard: "",
redirectURIOnProviderDashboard: "https://example.com", // this value doesn't matter cause it's mobile login, and Google doesn't check it, but our APIs need some value for it.
redirectURIQueryParams: {
code: user.serverAuthCode,
},
Expand Down

0 comments on commit 4934209

Please sign in to comment.