We have started seeing crash with iOS 14.5 for ASWebAuthenticationSession's callbackURLScheme. Is anybody seeing the issue? Is this an intentional change in iOS or a bug?
Code Block AuthenticationSession] The provided scheme is not valid. A scheme should not include special characters such as ":" or "/". *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: 'The provided scheme is not valid. A scheme should not include special characters such as ":" or "/".'
Regards,
Nimesh
ASWebAuthenticationSession does not require any modification in your Info.plist. This exception happens because the value that was passed to callbackURLScheme
contained either a ":" or "/" character. In most cases, this means you passed something like myscheme://
, which is not valid.
The correct value to pass in this case is just myscheme
(no trailing "://").