Closed bmbruno closed 1 week ago
https://github.com/bmbruno/spark-server-lite/blob/88ea51bc4cbbf01f57bf23fca2ea74e21e60a88a/Application/SparkServerLite/Controllers/BlogController.cs#L106
Example:
string userID = HttpContext.User.FindFirstValue(ClaimTypes.NameIdentifier) ?? string.Empty;
Not necessary. Built-in ControllerBase User object is fine for this context.
https://github.com/bmbruno/spark-server-lite/blob/88ea51bc4cbbf01f57bf23fca2ea74e21e60a88a/Application/SparkServerLite/Controllers/BlogController.cs#L106
Example:
string userID = HttpContext.User.FindFirstValue(ClaimTypes.NameIdentifier) ?? string.Empty;