In case you want to add Auth0 in a Blazor WebAssembly project, you could just use the documentation from Microsoft.
However when using this for Auth0, there is one catch:
- It’s not possible to provide the Audience, this means that you need to apply this work-around : Auth0-why-is-it-necessary-to-pass-the-audience-parameter-to-receive-a-jwt
Or you can use my NuGet package : WebAssembly.Authentication.Auth0 which does support the Audience parameter.
More details van be found here:
And a full working example can be found here: