# Securing Blazor WebAssembly Apps

**URL:** <https://community.auth0.com/t/securing-blazor-webassembly-apps/46661>\
**Category:** Get Help\
**Tags:** dotnet, webassembly, .net, blazor\
**Created:** [July 21, 2020, 3:10pm UTC](https://community.auth0.com/t/securing-blazor-webassembly-apps/46661 "2020-07-21T15:10:03Z")\
**Posts on this page:** 1\
**Showing post:** 12

<div class="post-metadata">

**Author:** ![dane.vinson](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/dane.vinson/32/12778_2.png) [@dane.vinson](https://community.auth0.com/u/dane.vinson)\
**Post date:** [August 7, 2020, 10:47pm UTC](https://community.auth0.com/t/securing-blazor-webassembly-apps/46661/12 "2020-08-07T22:47:31Z")

</div>

In working through this article I’ve found that when I assign the RemoteAuthenticationOptions.ProviderOptions.ResponseType to “code” I get a 401 response with the message “There was an error trying to log you in: ‘’”. If I do not assign the ResponseType (defaults to token?) the login succeeds, however, after successful login attempts access my API fail at the TryGetToken method. Inspection of the AccessTokenResult shows it’s Status is RequiredRedirect. Any thoughts on what I can try here?

---

_[View the full topic](https://community.auth0.com/t/securing-blazor-webassembly-apps/46661)._
