smartcar / ios-sdk

Smartcar SDK for iOS.
https://smartcar.github.io/ios-sdk/
MIT License
19 stars 7 forks source link

Documentation missing for AuthorizationError #52

Closed sankethkatta closed 5 years ago

sankethkatta commented 5 years ago

When a user denies access to an application, the SDK returns an AuthorizationError to the completion handler. There are a few different cases this error is returned as we can see in the callback handling code below:

https://github.com/smartcar/ios-sdk/blob/2dd06dedff4ea26b6afc523ccb4a8f206798fb78/SmartcarAuth/SmartcarAuth.swift#L143-L161

There is no documentation around this error. In addition, the detailed error_description returned by the Smartcar Connect flow is also not surfaced.

sankethkatta commented 5 years ago

Resolved by #53