Skip to main content
Solved

Can app_user_id get updated?

  • December 13, 2024
  • 1 reply
  • 25 views

Forum|alt.badge.img+5

Background / use case: Some time ago we changed auth providers from AWS/Cognito to Firebase/Auth.  We use a RC webhook to integrate with a 3rd party CRM (Customer.io).  We still get RC webhook events with the legacy Cognito app_user_id’s when the legacy subscribers auto renew (for instance) even though these legacy subscribers have new Firebase ID’s that are associated with the legacy COgnito ID’s via RC aliases.

 

Question: Is it possible to update the Cognito app_user_id’s with the newer Firebase ID’s?  I.E. can we swap alias ID with app_user_id?

Best answer by kaitlin

Hi ​@Loredo Sola,

Most likely the easiest way to go about this would be to use `.login` to identify these legacy users with the new Firebase ID. If the users are already identified with the Cognito ID, this means that upon log in, going from one custom ID to another will cause the user’s customerInfo to transfer from the Cognito ID to the Firebase ID, with no aliases created: https://www.revenuecat.com/docs/customers/user-ids#login-method-alias-behavior

Does this seem like it will work for your use case, or are you hoping to have that Cognito ID still attached as an alias?

 

View original
Did this post help you find an answer to your question?
This post has been closed for comments

1 reply

kaitlin
RevenueCat Staff
Forum|alt.badge.img+6
  • RevenueCat Staff
  • 365 replies
  • Answer
  • December 17, 2024

Hi ​@Loredo Sola,

Most likely the easiest way to go about this would be to use `.login` to identify these legacy users with the new Firebase ID. If the users are already identified with the Cognito ID, this means that upon log in, going from one custom ID to another will cause the user’s customerInfo to transfer from the Cognito ID to the Firebase ID, with no aliases created: https://www.revenuecat.com/docs/customers/user-ids#login-method-alias-behavior

Does this seem like it will work for your use case, or are you hoping to have that Cognito ID still attached as an alias?

 


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