I've got a hybrid web application. Some stuff is done the mvc way, and some stuff is done via javascript ajax postbacks. I'm authenticating against AAD B2C in the mvc app. But the clientside javascript needs to include a bearer token header to hit the server directly. The question is - how do I get the token so I can pass it back to the UI (in the view model)?.
Many thanks
Nick