Blazorade / Blazorade-MSAL

A Blazor component library that makes it easy to use authentication in your application through MSAL, both in Blazor Server and Blazor WebAssembly applications.
MIT License
17 stars 5 forks source link

Added HasTokenAsync method #25

Closed MikaBerglund closed 2 years ago

MikaBerglund commented 2 years ago

The HasTokenAsync method is used to check whether there is a token for a specific scenario. It is a shorthand for calling the AcquireTokenSilentAsync method, catching any exceptions and checking the result for that method call.