Closed anasseb closed 2 years ago
On the api side, there's ICurrentUser:
On the blazor side, nothing special is done. The standard way of accessing the user in blazor is by injecting a Task<AuthenticationState> AuthState
. Look at the profile page (and most other pages actually) for an example.
Thank you, that helps me.
Hello, Is there a way to access the current user in both API (Application layer) and Front (any component) ? Thanks.