'How to use swagger to set the global JWT in asp.net core?

I have relearned asp.net core, and in my personal project, I used swagger interface documentation. I follow this documentation and it works fine, https://docs.microsoft.com/en-us/aspnet/core/tutorials/web-api-help-pages-using-swagger?view=aspnetcore-3.1. But I have a doubt, that is how to use the token, I am using the asp.net core 3.1 version. As shown in my picture, although it is not done by asp.net core, how can it be implemented in .net core?

enter image description here

When I access an interface, I need a login token because I don't have permission. Can I use the global token in asp.net core?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source