Skip to content

Instantly share code, notes, and snippets.

@ntakouris
Created July 22, 2019 14:45
Show Gist options
  • Save ntakouris/417c81fc3b6025a5a2d14398481f139d to your computer and use it in GitHub Desktop.
Save ntakouris/417c81fc3b6025a5a2d14398481f139d to your computer and use it in GitHub Desktop.
public class RefreshToken
{
[Key]
[DatabaseGenerated(DatabaseGeneratedOption.Identity)]
public string Token { get; set; }
public string JwtId { get; set; }
public DateTime CreationDate { get; set; }
public DateTime ExpiryDate { get; set; }
public bool Used { get; set; }
public bool Invalidated { get; set; }
public string UserId { get; set; }
[ForeignKey(nameof(UserId))]
public IdentityUser User { get; set; }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment