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

Passwordless Email doesnt open application #756

Closed
6 tasks done
oezguercelebi opened this issue Feb 3, 2023 · 2 comments
Closed
6 tasks done

Passwordless Email doesnt open application #756

oezguercelebi opened this issue Feb 3, 2023 · 2 comments
Labels
waiting for customer This issue is waiting for a response from the issue or PR author

Comments

@oezguercelebi
Copy link

oezguercelebi commented Feb 3, 2023

Checklist

Description

Hello,
we are trying to implement Passwordless login natively on iOS and Android and encountered an issue.
The emails we get from setting up Passwordless and sending ourselves a test email are visually different than the email we expect would like to get from the SDK method request. Also, the email from the SDK method request does not open the app because the universal link piece is missing in front of the link when we select iOS or Android type.

We want to get an Email with a redirect link with the OTP in the URL and an OTP code should be shown in the email. To make sure that customers that have email client not on the phone can enter their OTP code.

This is what we used on both platforms

Auth0
           .authentication()
           .startPasswordless(email: "test@gmail.com", type: .iOSLink)
           .start { result in
               switch result {
               case .success:
                   print("Auth0 Sent OTP to test@gmail.com!")
               case .failure(let error):
                   print("Auth0: \(error)")
               }
           }

Reproduction

  1. Add SDK
  2. Enable Passwordless
  3. Request auth on native mobile application

Auth0.swift version

2.3.2

Platform

iOS

Platform version(s)

16.2

Xcode version

14.2

Package manager

SPM

@oezguercelebi oezguercelebi added the bug This points to a verified bug in the code label Feb 3, 2023
@Widcket
Copy link
Contributor

Widcket commented Feb 7, 2023

Hi @oezguercelebi, thanks for raising this.

the email from the SDK method request does not open the app because the universal link piece is missing in front of the link

Testing this I get a link like https://ritazerrizuela.auth0.com/ios/com.example.test/email?code=111111. For this link to open your iOS app, you need to set up Universal Links. See auth0/Lock.swift#665

an OTP code should be shown in the email. To make sure that customers that have email client not on the phone can enter their OTP code.

I'm afraid this is out of the scope of the SDK, please contact support to file a feature request.

@Widcket Widcket added waiting for customer This issue is waiting for a response from the issue or PR author and removed bug This points to a verified bug in the code labels Feb 7, 2023
@Widcket
Copy link
Contributor

Widcket commented Feb 17, 2023

Closing as the above seems to solve your issue. Please feel free to ping if you'd prefer to reopen.

@Widcket Widcket closed this as completed Feb 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
waiting for customer This issue is waiting for a response from the issue or PR author
Projects
None yet
Development

No branches or pull requests

2 participants