auth0-samples / auth0-react-native-sample

Auth0 Integration Samples for React Native
https://auth0.com/docs/quickstart/native/react-native
MIT License
128 stars 156 forks source link

Objective-C exception thrown. Name: NSInvalidArgumentException Reason: The provided scheme is not valid. A scheme should not include special characters such as ":" or "/". #47

Closed MANIKANDANVIJAYA closed 3 years ago

MANIKANDANVIJAYA commented 3 years ago

When accessing the Auth0 link below issue occurred in xamarin android

xcode ver : 12.5 and SDK ver : 14.5

Objective-C exception thrown. Name: NSInvalidArgumentException Reason: The provided scheme is not valid. A scheme should not include special characters such as ":" or "/". Native stack trace: 0 CoreFoundation 0x00007fff20422fba __exceptionPreprocess + 242 1 libobjc.A.dylib 0x00007fff20193ff5 objc_exception_throw + 48 2 AuthenticationServices 0x00007fff4aae1b15 -[ASWebAuthenticationSession initWithURL:callbackURLScheme:usingEphemeralSession:completionHandler:] + 684 3 BusinessPartnersApp 0x0000000108a9a5d9 xamarin_dyn_objc_msgSend + 217 4 ??? 0x000000011d4a334e 0x0 + 4786369358

Widcket commented 3 years ago

Hi @MANIKANDANVIJAYA, thanks for raising this. From your description, it sounds like this is not an issue with the React Native sample, as you mention Xamarin. You might find this link useful: https://github.com/auth0/auth0-oidc-client-net/issues/189 I'll close this issue, let me know if you have further questions.