How to get the id_token in blazor web assembly
问题 I have got a Blazor WebAssembly (latest 3.2.0) app with oidc Authentication. The asp.net authentication provides a way to get the accessToken but can't see any means to access the id_token (jwt) which is required for my scenario. I can see the id_token in the local storage of the browser. What would be best way to access it? Thanks 回答1: You can read it from the session storage using JSInterop, it is stored at key oidc.user:{app baseUri}:{app client id} : @inject IJSRuntime JSRuntime @inject