I need to include an access_token in the header of axios, following this example:
https://github.com/axios/axios#global-axios-defaults
Currently, I am fetching the access_token using razor syntax, which is only accessible in CSHTML files.
I am utilizing typescript with vue.js through JavascriptServices
Is there a way to set/pass the await Context.GetTokenAsync("access_token") from my CSHTML file to my typescript file (for example boot.ts) in order to set it as axios default?