React SPA w/ express server - on login give express user_id

Hi @kiro,

You could handle the user_id update in a rule instead of in your SPA. Rules execute after authentication, so you could send the user ID to your API at that point before redirecting to your React app. You can call your own API by following this FAQ:

1 Like