Custom auth http1 variables

@Andrew_Morse running into another roadblock I could use some input on!

What I need to do:
Access one of the variables defined in the auth resource in a different resource. The auth resource defines a variable called QB_REALM_ID. This is a user's company id. We need to update Supabase with this id for the user. This is a key component of the app which makes onboarding for the user 10x simpler. Without it, the customer needs to go to their Quickbooks portal, find their company id in their settings, then copy and paste it into our app.

What I have tried:

  • Getting auth session data from Quickbooks API, this does not exist
  • Update the response to include this variable return {...data, var: QB_REALM_ID}
  • Pass into additional scope of the event handler, which does not appear possible based on this post
  • Use Javascript to set a localStorage value in the auth resource as the last step. This results in an odd seemingly unrelated error, but I confirmed this step was causing the error:

Is this functionality possible? I don't see why this variable shouldn't be accessible outside of the resource where it is defined.