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

Crash with numeric bundle indentifier #785

Closed
6 tasks done
peppelisanti opened this issue Jul 26, 2023 · 1 comment · Fixed by #786
Closed
6 tasks done

Crash with numeric bundle indentifier #785

peppelisanti opened this issue Jul 26, 2023 · 1 comment · Fixed by #786
Labels
bug This points to a verified bug in the code

Comments

@peppelisanti
Copy link

Checklist

Description

I have an application with a bundle identifier that starts with numbers, like 8NF89NA5EL.xx.xxxxxxxx.xxx
When I call the web authentication I have a crash on Auth0WebAuth.swift at the row
components?.scheme = bundleIdentifier
The crash is +[NSURLComponents setScheme:]: invalid characters in scheme

Reproduction

Try web authentication with a bundle identifier that start with numbers

Additional context

No response

Auth0.swift version

2.4.0

Platform

iOS

Platform version(s)

16.4

Xcode version

14.3.1

Package manager

Cocoapods

@peppelisanti peppelisanti added the bug This points to a verified bug in the code label Jul 26, 2023
@Widcket
Copy link
Contributor

Widcket commented Aug 1, 2023

Hi @peppelisanti, thanks for raising this.

I was able to reproduce the issue:
Screenshot 2023-08-01 at 5 23 01 PM

In the meantime, you can use the redirectURL() builder method to specify a URL with a different scheme.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug This points to a verified bug in the code
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants