Skip to content

Commit

Permalink
Merge pull request #369 from stytchauth/readme-updates-3
Browse files Browse the repository at this point in the history
Update Readmes and Sample Apps for StytchUI - 3
  • Loading branch information
nidal-stytch authored Dec 20, 2024
2 parents a1c8ebf + f57a37e commit 0d7a5a2
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ class B2BUIViewController: UIViewController {
}

let stytchB2BUIConfig: StytchB2BUIClient.Configuration = .init(
publicToken: "public-token-test-b6be6a68-d178-4a2d-ac98-9579020905bf",
publicToken: "your-public-token",
products: [.emailMagicLinks, .sso, .passwords, .oauth],
authFlowType: .organization(slug: "no-mfa"),
// authFlowType: .discovery,
Expand Down
2 changes: 1 addition & 1 deletion tutorials/B2B-UI.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ func showStytchB2BUI() {
}

let stytchB2BUIConfig: StytchB2BUIClient.Configuration = .init(
publicToken: "public-token-test-b6be6a68-d178-4a2d-ac98-9579020905bf",
publicToken: "your-public-token",
products: [.emailMagicLinks, .sso, .passwords, .oauth],
authFlowType: .organization(slug: "no-mfa"),
//authFlowType: .discovery,
Expand Down
14 changes: 7 additions & 7 deletions tutorials/NavigatingTheProject.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,25 +20,25 @@ For each app you would like to run you must first ensure you have added your [pu

* **StytchDemo**
Bundle ID: `com.stytch.StytchDemo`
[Configure the public token](https://github.com/stytchauth/stytch-ios/blob/f5a1fed4f54708fd7bc089340cccb3b2c3ab2d96/Stytch/DemoApps/StytchDemo/ContentView.swift#L21)
[Configure the public token](../Stytch/DemoApps/StytchDemo/ContentView.swift#L24)

* **StytchUIDemo**
Bundle ID: `com.stytch.StytchUIDemo`
[Configure the public token](https://github.com/stytchauth/stytch-ios/blob/21d940ffed919e983c4396b91099e844f886c38a/Stytch/DemoApps/StytchUIDemo/ContentView.swift#L10)
[Configure the URL Scheme](https://github.com/stytchauth/stytch-ios/blob/21d940ffed919e983c4396b91099e844f886c38a/Stytch/DemoApps/StytchUIDemo/Info.plist#L14)
[Configure the public token](../Stytch/DemoApps/StytchUIDemo/ContentView.swift#L10)
[Configure the URL Scheme](../Stytch/DemoApps/StytchUIDemo/Info.plist#L14)

* **StytchB2BUIDemo**
Bundle ID: `com.stytch.StytchB2BUIDemo`
[Configure the public token](https://github.com/stytchauth/stytch-ios/blob/21d940ffed919e983c4396b91099e844f886c38a/Stytch/DemoApps/StytchB2BUIDemo/ContentView.swift#L10)
[Configure the URL Scheme](https://github.com/stytchauth/stytch-ios/blob/21d940ffed919e983c4396b91099e844f886c38a/Stytch/DemoApps/StytchB2BUIDemo/Info.plist#L12)
[Configure the public token](../Stytch/DemoApps/StytchB2BUIDemo/ContentView.swift#L10)
[Configure the URL Scheme](../Stytch/DemoApps/StytchB2BUIDemo/Info.plist#L12)

* **ConsumerWorkbench**
Bundle ID: `com.stytch.ConsumerWorkbench`
[Configure the public token](https://github.com/stytchauth/stytch-ios/blob/f5a1fed4f54708fd7bc089340cccb3b2c3ab2d96/Stytch/DemoApps/ConsumerWorkbench/Shared/StytchDemoApp.swift#L6)
[Configure the public token](../Stytch/DemoApps/ConsumerWorkbench/Shared/StytchDemoApp.swift#L6)

* **B2BWorkbench**
Bundle ID: `com.stytch.B2BWorkbench`
[Configure the public token](https://github.com/stytchauth/stytch-ios/blob/0d0bb69237a69f266530f831eca3ef8c2b7a91c5/Stytch/DemoApps/B2BWorkbench/ViewControllers/RootViewController.swift#L43)
[Configure the public token](../Stytch/DemoApps/B2BWorkbench/ViewControllers/RootViewController.swift#L43)

## 5. Running the Sample Apps

Expand Down
2 changes: 1 addition & 1 deletion tutorials/UI.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ func showStytchConsumerUI() {
}

let stytchConsumerUIConfig: StytchUIClient.Configuration = .init(
publicToken: "public-token-test-728f8b82-2a20-4926-b077-a8ca7d67e1b2",
publicToken: "your-public-token",
products: [.passwords, .emailMagicLinks, .otp, .oauth],
oauthProviders: [.apple, .thirdParty(.google)],
otpOptions: .init(methods: [.sms])
Expand Down

0 comments on commit 0d7a5a2

Please sign in to comment.