public RefreshToken(AutorisatieCode code) { Type = GetType().Name; ClientId = code.ClientId; UserId = code.UserId; Scopes = code.Scopes; TokenString = GenerateToken(ClientId, UserId, Type); }
public BearerToken(AutorisatieCode code, string refreshToken) { RefreshTokenString = refreshToken; TimeToLive = ExpiryTime; Type = GetType().Name; ClientId = code.ClientId; UserId = code.UserId; Scopes = code.Scopes; TokenString = TokenGenerate.GenerateToken(ClientId, UserId, Type); }