❔ .Net Core API User.FindFirstValue(ClaimTypes.NameIdentifier) in every action?!
Hi everyone I have the end point below
now the line where i get the userId is being repeated in every action where i need the userId. is there a better way to have this value saved globally or in the controller scope or something?
now the line where i get the userId is being repeated in every action where i need the userId. is there a better way to have this value saved globally or in the controller scope or something?