When authorizing the Reader SDK for a location, we always get a valid authorization code for createMobileAuthorizationCode. However, when a Square account only has one ACTIVE location, there are times that when we then run the getAuthorizedLocationAsync()
it gives error rn_auth_location_not_authorized
.
Doing a deauthorization and then authorize again, sometimes, solves the issue.
Why would this error occur when mobile auth for the one location succeeds, but then the SDK gives an error?