Skip to main content
Question

Is it possible to access user attributes using the React Native SDK?

  • 2 March 2022
  • 1 reply
  • 38 views

Forum|alt.badge.img

Sorry if it’s been asked before, I couldn’t find any similar questions. As far as I can tell, it’s not possible to access the user attributes via React Native SDK, only REST API, can someone confirm? Thanks.

1 reply

tina
RevenueCat Staff
Forum|alt.badge.img+10
  • RevenueCat Staff
  • 338 replies
  • March 2, 2022

Hi @Diego López 

That’s correct that it’s not possible to read user attributes from the SDK. Currently the SDK has write access to the subscriber attributes, but not read access. The reason for this is because the REST API was built for SDK usage and this endpoint requires a secret key to pull subscriber attributes. We don’t recommend having secret keys within your app for security purposes. 


Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings