Set custom user metadata at sign-up with Facebook

Hi there!

I have an SPA with a Rails backend, which generates a custom tracking ID when a user lands on our site.

I’d like to add that custom tracking ID to the user’s JWT, such that when the user is redirected back to my site, the JWT already contains it

The catch is I need to support logging in with social providers, namely Facebook, and cannot rely on the database-only solutions outlined in these articles:

Is there a supported way around this problem? Or will I have to use a rule and make an additional request for the full JWT with tracking ID after auth + redirect?


Hey there!

Sorry for such huge delay in response! We’re doing our best in providing you with best developer support experience out there, but sometimes our bandwidth is not enough comparing to the number of incoming questions.

Wanted to reach out to know if you still require further assistance?