From 3cb0002973a201d4830ce9727ee9b226d67f8a4c Mon Sep 17 00:00:00 2001 From: Nemi Shah Date: Fri, 17 Nov 2023 15:28:37 +0530 Subject: [PATCH] chore: Update Example app (#57) * Add example app with-thirdparty * Update README * Update example app --- examples/with-thirdparty/README.md | 8 -------- examples/with-thirdparty/backend/config.ts | 2 +- .../LoginScreen/LoginScreenViewController.swift | 2 +- 3 files changed, 2 insertions(+), 10 deletions(-) diff --git a/examples/with-thirdparty/README.md b/examples/with-thirdparty/README.md index e95b5ae..3ca72d9 100644 --- a/examples/with-thirdparty/README.md +++ b/examples/with-thirdparty/README.md @@ -1,11 +1,3 @@ -- Add supertokens -- Add google sign in - - Update info plist, also add web client id -- Call sign in - - Get id token - - Call ST API -- URL Protocol for github login - # SuperTokens Example App ## Add dependencies diff --git a/examples/with-thirdparty/backend/config.ts b/examples/with-thirdparty/backend/config.ts index deccf34..527fbc4 100644 --- a/examples/with-thirdparty/backend/config.ts +++ b/examples/with-thirdparty/backend/config.ts @@ -10,7 +10,7 @@ export const SuperTokensConfig: TypeInput = { }, appInfo: { appName: "SuperTokens Demo App", - apiDomain: "http://192.168.1.102:3001", + apiDomain: "http://192.168.29.87:3001", websiteDomain: "http://localhost:3000", // this value does not matter for the android app }, // recipeList contains all the modules that you want to diff --git a/examples/with-thirdparty/with-thirdparty/LoginScreen/LoginScreenViewController.swift b/examples/with-thirdparty/with-thirdparty/LoginScreen/LoginScreenViewController.swift index 8b5acad..06dacb8 100644 --- a/examples/with-thirdparty/with-thirdparty/LoginScreen/LoginScreenViewController.swift +++ b/examples/with-thirdparty/with-thirdparty/LoginScreen/LoginScreenViewController.swift @@ -89,7 +89,7 @@ class LoginScreenViewController: UIViewController { "thirdPartyId": "github", "redirectURIInfo": [ // For native flows we do not have a redirect uri - "redirectURIOnProviderDashboard": "com.supertokens.supertokensexample://oauthredirect", + "redirectURIOnProviderDashboard": "", "redirectURIQueryParams": [ "code": authCode ],