dotnet / dotnet/aspnetcore

Force Auth Token refresh in Blazor WASM

Open
#64,116 7 comments 1 reaction 0 assignees View on GitHub
area-auth Needs: Attention :wave:
Dominant language
C#
Stars
38.4k
Forks
10.9k
Avg merge
2d 10h
Merged PRs (30d)
281

Description

### Is there an existing issue for this?

- [x] I have searched the existing issues

### Is your feature request related to a problem? Please describe the problem.

I am trying to force the refresh of my access token without the user needing to authenticate again.

### Describe the solution you'd like

I would like to programatically request that the application gets a fresh Auth token of an already authenticated user. This would emulate exactly what happens when the auth token expires and is refreshed.

### Additional context

I have read #39775. However, if I redirect to `authentication/login` it forces my user to authenciate again. I am using Auth0 as my IDP is that matters.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.