How to use getTokenSilently in .NET 6?

I have seen some examples of the SPA sdk’s where there is the option to use getTokenSilently to for example check if a user still has a valid Auth0 session. My problem is that I can’t find this functionality in the Auth0.AspNetCore.Authentication package.

How do I achieve this functionality with this SDK? I am using a .NET 6 MVC web application.

Hi @randy.grouls,

getTokenSilently is specific to Single Page Apps. Silent auth allows for short lived tokens in public apps, via a cookie session for persistence.

For your app, you may want to consider using a refresh token for a similar type of flow. Here is a blog on the subject:

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.