Use the dotnet user-secrets command to keep secrets (API keys, etc.) separate from our program source code. That way, we can access APIs from our program, using a key, and we can prevent those keys from getting propagated to GitHub, where they may be publicly visible.
This video is part of a playlist on consuming and creating RESTful JSON APIs with C# Razor Pages.
Source code is freely available on GitHub at https://github.com/discospiff/PlantDi...
Watch video Keep API key secret from Git/GitHub in Visual Studio 2022 C# Razor Page online without registration, duration hours minute second in high quality. This video was added by user Brandan Jones 15 September 2022, don't forget to share it with your friends and acquaintances, it has been viewed on our site 2,007 once and liked it 29 people.