'Which User identifier should I store against my data in ASP.NET Core 6
I have a simple Blazor CRUD web app that allows a user to create and store "Cards", I have the main page hidden from unauthenticated users but I am struggling to decide how to save which user created which card.
I am using
await GetAuthenticationStateAsync.GetAuthenticationStateAsync()
in my Blazor view to get the currently logged in user, however I am unsure what value to store against my "cards" in the database as the User.Name comes through as the email address?
Should I be storing the email address against the card or can I get access to the ID property in the Identity to store that meaning users would be "Unrecognizable" by their data.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
