I have a login component that works perfectly, resulting in a cookie set for my access token.
I then have another component that calls an auth/me endpoint upon a button click. This is an authenticated endpoint, and thus the access token gets sent. This should, ideally, return the user information.
I want to use the returned id of the user in something, but I am unable to reference it in a formula as for some reason I don't get an access token when using the editor (which makes it impossible to reference a result from the api call in a formula). If I go into preview, I can login, get the access token, and the auth/me endpoint works. But this does not happen in the editor, and the problem with this is that I need to get data returned from the auth/me call in order to be able to reference a specific field from it in a formula. Any ideas on how to fix?