Skip to content

Commit 9dc0393

Browse files
committed
use existing demo example
1 parent 727427a commit 9dc0393

File tree

5 files changed

+854
-329
lines changed

5 files changed

+854
-329
lines changed

examples/demo/ios/Example.xcodeproj/project.pbxproj

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -193,14 +193,10 @@
193193
inputFileListPaths = (
194194
"${PODS_ROOT}/Target Support Files/Pods-Example/Pods-Example-frameworks-${CONFIGURATION}-input-files.xcfilelist",
195195
);
196-
inputPaths = (
197-
);
198196
name = "[CP] Embed Pods Frameworks";
199197
outputFileListPaths = (
200198
"${PODS_ROOT}/Target Support Files/Pods-Example/Pods-Example-frameworks-${CONFIGURATION}-output-files.xcfilelist",
201199
);
202-
outputPaths = (
203-
);
204200
runOnlyForDeploymentPostprocessing = 0;
205201
shellPath = /bin/sh;
206202
shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-Example/Pods-Example-frameworks.sh\"\n";
@@ -236,14 +232,10 @@
236232
inputFileListPaths = (
237233
"${PODS_ROOT}/Target Support Files/Pods-Example/Pods-Example-resources-${CONFIGURATION}-input-files.xcfilelist",
238234
);
239-
inputPaths = (
240-
);
241235
name = "[CP] Copy Pods Resources";
242236
outputFileListPaths = (
243237
"${PODS_ROOT}/Target Support Files/Pods-Example/Pods-Example-resources-${CONFIGURATION}-output-files.xcfilelist",
244238
);
245-
outputPaths = (
246-
);
247239
runOnlyForDeploymentPostprocessing = 0;
248240
shellPath = /bin/sh;
249241
shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-Example/Pods-Example-resources.sh\"\n";
@@ -392,7 +384,10 @@
392384
"-DFOLLY_CFG_NO_COROUTINES=1",
393385
"-DFOLLY_HAVE_CLOCK_GETTIME=1",
394386
);
395-
OTHER_LDFLAGS = "$(inherited) ";
387+
OTHER_LDFLAGS = (
388+
"$(inherited)",
389+
" ",
390+
);
396391
REACT_NATIVE_PATH = "${PODS_ROOT}/../../node_modules/react-native";
397392
SDKROOT = iphoneos;
398393
SWIFT_ACTIVE_COMPILATION_CONDITIONS = "$(inherited) DEBUG";
@@ -461,7 +456,10 @@
461456
"-DFOLLY_CFG_NO_COROUTINES=1",
462457
"-DFOLLY_HAVE_CLOCK_GETTIME=1",
463458
);
464-
OTHER_LDFLAGS = "$(inherited) ";
459+
OTHER_LDFLAGS = (
460+
"$(inherited)",
461+
" ",
462+
);
465463
REACT_NATIVE_PATH = "${PODS_ROOT}/../../node_modules/react-native";
466464
SDKROOT = iphoneos;
467465
USE_HERMES = true;

examples/demo/ios/Podfile.lock

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1338,7 +1338,7 @@ PODS:
13381338
- React-jsiexecutor
13391339
- React-RCTFBReactNativeSpec
13401340
- ReactCommon/turbomodule/core
1341-
- react-native-app-auth (8.0.2):
1341+
- react-native-app-auth (8.0.3):
13421342
- AppAuth (>= 1.7.6)
13431343
- React-Core
13441344
- React-NativeModulesApple (0.79.2):
@@ -1931,7 +1931,7 @@ SPEC CHECKSUMS:
19311931
React-logger: 368570a253f00879a1e4fea24ed4047e72e7bbf3
19321932
React-Mapbuffer: c04fcda1c6281fc0a6824c7dcc1633dd217ac1ec
19331933
React-microtasksnativemodule: ca2804a25fdcefffa0aa942aa23ab53b99614a34
1934-
react-native-app-auth: 390986b663497d92de5c00d77b6e2c947d52995e
1934+
react-native-app-auth: 149f01d2c824758453c9e7815217ded451974683
19351935
React-NativeModulesApple: 452b86b29fae99ed0a4015dca3ad9cd222f88abf
19361936
React-oscompat: ef5df1c734f19b8003e149317d041b8ce1f7d29c
19371937
React-perflogger: 6fd2f6811533e9c19a61e855c3033eecbf4ad2a0

examples/expo-cng/App.tsx

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,9 @@ import { authorize, AuthConfiguration, AuthorizeResult } from 'react-native-app-
88
const config: AuthConfiguration = {
99
issuer: 'https://demo.duendesoftware.com',
1010
clientId: 'interactive.public',
11-
redirectUrl: 'com.example.expo-cng://oauth',
12-
scopes: ['openid', 'profile', 'email', 'api'],
11+
redirectUrl: 'io.identityserver.demo:/oauthredirect',
1312
additionalParameters: {},
14-
useNonce: true,
15-
usePKCE: true,
13+
scopes: ['openid', 'profile', 'email', 'offline_access'] as const,
1614
};
1715

1816
export default function App() {

examples/expo-cng/app.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
"react-native-app-auth",
3333
{
3434
"redirectUrls": [
35-
"com.example.expo-cng://oauth"
35+
"io.identityserver.demo:/oauthredirect"
3636
]
3737
}
3838
]

0 commit comments

Comments
 (0)