Skip to content

Instantly share code, notes, and snippets.

@MahdiKarimipour
Created June 25, 2021 00:46
Show Gist options
  • Save MahdiKarimipour/1a68244e6891668337def8379e60bfeb to your computer and use it in GitHub Desktop.
Save MahdiKarimipour/1a68244e6891668337def8379e60bfeb to your computer and use it in GitHub Desktop.
ASP.NET 5.0 Sample App Settings
public class AppSettings
{
public string AllowedOrigins { get; set; }
public string AppName { get; set; }
public SubscriptionApi SubscriptionApiSettings { get; set; }
public JwtTokenConfig AuthSettings { get; set; }
public class JwtTokenConfig
{
public string Issuer { get; set; }
public string Audience { get; set; }
public int AccessTokenExpiration { get; set; }
public int RefreshTokenExpiration { get; set; }
}
public class Subscription
{
public string FreeTierPriceId { get; set; }
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment