Why does ASP.NET Core Web API not recognize when a user is logged in when passing a bearer token in the request header?
I set up a basic ASP.NET Core 8 Web API controller using AspNetCore.Identity.MongoDbCore
package to connect to a MongoDB collection, and added a /api/user/{username}
endpoint.