-
Notifications
You must be signed in to change notification settings - Fork 0
Get started with Development
ProgramX-NPledger edited this page Jan 7, 2024
·
5 revisions
Secrets must be stored in a secure location and must never be submitted to source control. Secrets are not portable across servers.
In the API project directory, create a User Secrets command using:
dotnet user-secrets init
This creates a user secrets file and binds it to the unique identifier used by the .csproj file.
You must add secrets to this file using the following commands.
- Key used for signing JWT Tokens
dotnet user-secrets set "Security:JwtPolicy:TokenKey" "<any-random-string-with-length-greater-than-sixty-four-characters>"