C#
C#

help

Root Question Message

TotechsStrypper
TotechsStrypper2/17/2023
❔ How can the guid claim out of the http context

Here is my token information and I use this code to get the guid but nothing return
var guid = HttpContext.User.FindFirst("guid")?.Value;
cumslvt13
cumslvt132/17/2023
Probably HttpContext.User.ClaimsPrincipal.Claims
TotechsStrypper
TotechsStrypper2/17/2023
No I got it I didn't include this
[Authorize(AuthenticationSchemes = "Bearer")]
On the head of my controller
ContactFrequently Asked QuestionsJoin The DiscordBugs & Feature RequestsTerms & Privacy