How to access currently logged in user in node as server with SPA as client

I am not an expert on vue, but this sounds like a good solution.

According to the following post the getTokenSilently call should happen upon client init, checking for an existing session: