Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Native flows #68

Merged
merged 11 commits into from
Nov 11, 2024
Merged

Native flows #68

merged 11 commits into from
Nov 11, 2024

Conversation

shilgapira
Copy link
Member

Related Issues

https://github.com/descope/etc/issues/5992

Description

The new DescopeFlowViewController provides a quick and simple way to display a flow in your app. Alternatively, you can use a DescopeFlowView and embed it in your view hierarchy however you want. The previous flow implementation that used a sandboxed browser has been deprecated.

fun showLoginScreen() {
    let url = URL(string: "https://example.com/myflow")!
    let flow = DescopeFlow(url: url)
    let flowViewController = DescopeFlowViewController()
    flowViewController.delegate = self
    flowViewController.start(flow: flow)
    navigationController?.pushViewController(flowViewController, animated: true)
}

Must

  • Tests
  • Documentation (if applicable)

@shilgapira shilgapira self-assigned this Nov 11, 2024
@shilgapira shilgapira enabled auto-merge (squash) November 11, 2024 13:26
@shilgapira shilgapira merged commit 1ae660c into main Nov 11, 2024
1 check passed
@shilgapira shilgapira deleted the native-flows branch November 11, 2024 13:46
@shilgapira shilgapira mentioned this pull request Nov 11, 2024
2 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants