private static LockboxSettings InitializeLockboxSettings(LockboxSettings settings) { settings.SecretKey = GetParameterOrFail(settings.SecretKey, SecretKeyEnvironmentVariable, "secret key"); return(settings); }
public JwtTokenHandler(LockboxSettings lockboxSettings) { _jwtSecretKey = Encoding.Unicode.GetBytes(lockboxSettings.SecretKey); }