Chris Sainty 6/9/2020

Avoiding AccessTokenNotAvailableException when using the Blazor WebAssembly Hosted template with individual user accounts

Read Original

This technical article explains a common issue in Blazor WebAssembly Hosted apps with Individual user accounts, where the default HttpClient throws an AccessTokenNotAvailableException when calling unprotected endpoints. It details the cause in the BaseAddressAuthorizationMessageHandler and provides a solution for configuring a separate HttpClient for unauthenticated API calls.

Avoiding AccessTokenNotAvailableException when using the Blazor WebAssembly Hosted template with individual user accounts

Comments

No comments yet

Be the first to share your thoughts!

Browser Extension

Get instant access to AllDevBlogs from your browser

Top of the Week