Good catch @Max. It is relying on a couple pieces of client-side data. Follow up question:
Let's say I have something like an auth/me endpoint that I call to make sure the user is authenticated and then use a piece of info in the user object to make another API call. Is there any way to do this where both calls can happen server-side. For example, if I make the second call onSuccess of the first call, would that also be server-side or wait for the client to load at that point?