Skip to content

Commit

Permalink
GET /Tokens/{id} endpoint does not return forIdentity property (#836)
Browse files Browse the repository at this point in the history
* fix: set ForIdentity property in DTO mapping

* feat: add ForIdentity property to Token class of SDK
  • Loading branch information
tnotheis authored Sep 3, 2024
1 parent 081e7b6 commit 15e37c7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ public TokenDTO(Token token)
CreatedAt = token.CreatedAt;
ExpiresAt = token.ExpiresAt;
Content = token.Content;
ForIdentity = token.ForIdentity?.Value;
}

public string Id { get; set; }
Expand Down
1 change: 1 addition & 0 deletions Sdks/ConsumerApi.Sdk/src/Endpoints/Tokens/Types/Token.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,6 @@ public class Token
public required string CreatedByDevice { get; set; }
public required DateTime CreatedAt { get; set; }
public required DateTime ExpiresAt { get; set; }
public string? ForIdentity { get; set; }
public required byte[] Content { get; set; }
}

0 comments on commit 15e37c7

Please sign in to comment.