Created
July 22, 2019 14:45
-
-
Save ntakouris/417c81fc3b6025a5a2d14398481f139d to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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