# Authorization error react native

**URL:** <https://developer.squareup.com/forums/t/authorization-error-react-native/26181>\
**Category:** Questions\
**Tags:** mobile-payments-sdk\
**Created:** [May 23, 2026, 9:14pm UTC](https://developer.squareup.com/forums/t/authorization-error-react-native/26181 "2026-05-23T21:14:40Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![rglqro](https://avatars.discourse-cdn.com/v4/letter/r/7cd45c/32.png) [@rglqro](https://developer.squareup.com/forums/u/rglqro)\
**Post date:** [May 23, 2026, 9:14pm UTC](https://developer.squareup.com/forums/t/authorization-error-react-native/26181/1 "2026-05-23T21:14:40Z")

</div>

Hello i am getting this error when i start my app  
Authorization error: ReferenceError: Property ‘authorizedLocation’ doesn’t exist  
at ?anon\_0\_  
at tryCallOne (address at InternalBytecode.js:1:1180)  
at anonymous (address at InternalBytecode.js:1:1874)

id: sandbox-sq0idb-4Sm5E8\_0iHAa4xofB4RErA  
location: LM50S5H4E148G

---

<div class="post-metadata">

**Author:** ![josh-square](https://avatars.discourse-cdn.com/v4/letter/j/77aa72/32.png) [@josh-square](https://developer.squareup.com/forums/u/josh-square)\
**Post date:** [May 26, 2026, 2:18pm UTC](https://developer.squareup.com/forums/t/authorization-error-react-native/26181/3 "2026-05-26T14:18:12Z")

</div>

Hi! It sounds like there may have been an issue with the initial authorization.

To troubleshoot I’d recommend:

1. Make sure `authorize(locationId)` has completed successfully before calling `getAuthorizedLocation()`. The property only exists after authorization succeeds.
2. Check that the `locationId` you’re passing to `authorize()` is valid and that your OAuth token has permissions for that location.
3. Add error handling around your `authorize()` call — if it fails silently, subsequent calls to `authorizedLocation` will throw this error.

---

<div class="post-metadata">

**Author:** ![rglqro](https://avatars.discourse-cdn.com/v4/letter/r/7cd45c/32.png) [@rglqro](https://developer.squareup.com/forums/u/rglqro)\
**Post date:** [May 27, 2026, 1:55am UTC](https://developer.squareup.com/forums/t/authorization-error-react-native/26181/4 "2026-05-27T01:55:08Z")

</div>

Thanks for replying me, i realized 6 hours after this post of my error
