# Use SFSafariViewController

**URL:** <https://community.auth0.com/t/use-sfsafariviewcontroller/106178>\
**Category:** Get Help\
**Tags:** classic-universal-login-experience, configuration, application, login-experience\
**Created:** [May 4, 2023, 4:25pm UTC](https://community.auth0.com/t/use-sfsafariviewcontroller/106178 "2023-05-04T16:25:55Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![skirasirov](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/skirasirov/32/46812_2.png) [@skirasirov](https://community.auth0.com/u/skirasirov)\
**Post date:** [May 4, 2023, 4:25pm UTC](https://community.auth0.com/t/use-sfsafariviewcontroller/106178/1 "2023-05-04T16:25:55Z")

</div>

_“SFSafariViewController will not automatically capture the callback URL when Auth0 redirects back to your app, so it’s necessary to manually resume the Web Auth operation”_

Hi, guys!  
Help me, pls, I can’t figure where should I put it in my SwiftUI code?

SomeView()  
.onOpenURL { url in  
WebAuthentication.resume(with: url)  
}

---

<div class="post-metadata">

**Author:** ![konrad.sopala](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/konrad.sopala/32/13516_2.png) [@konrad.sopala](https://community.auth0.com/u/konrad.sopala)\
**Post date:** [May 5, 2023, 1:21pm UTC](https://community.auth0.com/t/use-sfsafariviewcontroller/106178/2 "2023-05-05T13:21:28Z")

</div>

Hey there!

Here’s a step by step two parts tutorial how to integrate authentication from Auth0 using SwiftUI:

> **[Get Started with iOS Authentication using SwiftUI, Part 1: Login and Logout](https://auth0.com/blog/get-started-ios-authentication-swift-swiftui-part-1-login-logout/)**
>
> Learn how to use Auth0 to implement basic login and logout in iOS apps built with SwiftUI.

> **[Get Started with iOS Authentication using SwiftUI, Part 2: User Profiles](https://auth0.com/blog/get-started-ios-authentication-swift-swiftui-part-2-user-profiles/)**
>
> Learn how to use Auth0 and user profiles to basic information about logged-in users in iOS apps built with SwiftUI.

---

<div class="post-metadata">

**Author:** ![skirasirov](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/skirasirov/32/46812_2.png) [@skirasirov](https://community.auth0.com/u/skirasirov)\
**Post date:** [May 5, 2023, 1:56pm UTC](https://community.auth0.com/t/use-sfsafariviewcontroller/106178/3 "2023-05-05T13:56:08Z")

</div>

Hey, Konrad!  
Thanks for your answer. Yep, it’s a great tutorial, which is what I used.  
This tutorial has a link to a note on how to get rid of the warning screen in Safari.

> <https://github.com/auth0/Auth0.swift/blob/master/FAQ.md#1-how-can-i-disable-the-login-alert-box>

And this note says: put it in your code:

SomeView()  
.onOpenURL { url in  
WebAuthentication.resume(with: url)  
}

but I don’t understand where to.

---

<div class="post-metadata">

**Author:** ![konrad.sopala](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/konrad.sopala/32/13516_2.png) [@konrad.sopala](https://community.auth0.com/u/konrad.sopala)\
**Post date:** [May 8, 2023, 11:12am UTC](https://community.auth0.com/t/use-sfsafariviewcontroller/106178/4 "2023-05-08T11:12:05Z")

</div>

Can you actually ask it there in a GitHub issue so that the repo maintainers can provide you with a direct answer? Thank you!

---

<div class="post-metadata">

**Author:** ![skirasirov](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/skirasirov/32/46812_2.png) [@skirasirov](https://community.auth0.com/u/skirasirov)\
**Post date:** [May 9, 2023, 11:34pm UTC](https://community.auth0.com/t/use-sfsafariviewcontroller/106178/5 "2023-05-09T23:34:00Z")

</div>

I did’t find a form, where I can ask a question.

> **[Auth0](https://github.com/auth0)**
>
> Auth0 has 438 repositories available. Follow their code on GitHub.

---

<div class="post-metadata">

**Author:** ![konrad.sopala](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/konrad.sopala/32/13516_2.png) [@konrad.sopala](https://community.auth0.com/u/konrad.sopala)\
**Post date:** [May 10, 2023, 8:50am UTC](https://community.auth0.com/t/use-sfsafariviewcontroller/106178/6 "2023-05-10T08:50:18Z")

</div>

You can raise it here:

> **[Issues · auth0/Auth0.swift](https://github.com/auth0/Auth0.swift/issues)**
>
> Auth0 SDK for Apple platforms. Contribute to auth0/Auth0.swift development by creating an account on GitHub.

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/auth0/original/3X/b/5/b560f266932fcce5d57f09a6595bd50518cae3f3.jpeg) [@system](https://community.auth0.com/u/system)\
**Post date:** [May 24, 2023, 8:50am UTC](https://community.auth0.com/t/use-sfsafariviewcontroller/106178/7 "2023-05-24T08:50:34Z")

</div>

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.
