Skip to content

Commit

Permalink
Did not return when token input is <4 chars and make a new 5.3.2 rele…
Browse files Browse the repository at this point in the history
…ase version (#25)
  • Loading branch information
sunnywu authored Oct 13, 2023
1 parent aa3949b commit 4e68f23
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion UID2.Client.nuspec
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<package>
<metadata>
<id>UID2.Client</id>
<version>5.3.1</version>
<version>5.3.2</version>
<title>UID2 Client C# SDK</title>
<authors>UID2 team</authors>
<owners>UID2 team</owners>
Expand Down
2 changes: 1 addition & 1 deletion src/UID2.Client/UID2Client.cs
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ public async Task<RefreshResponse> RefreshAsync(CancellationToken token)

private string GetAssemblyNameAndVersion()
{
var version = "5.3.1";
var version = "5.3.2";
return "uid-client-net-" + version;
}

Expand Down
2 changes: 1 addition & 1 deletion src/UID2.Client/UID2Encryption.cs
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ internal static DecryptionResponse Decrypt(string token, KeyContainer keys, Date
{
if (token.Length < 4)
{
DecryptionResponse.MakeError(DecryptionStatus.InvalidPayload);
return DecryptionResponse.MakeError(DecryptionStatus.InvalidPayload);
}

string headerStr = token.Substring(0, 4);
Expand Down

0 comments on commit 4e68f23

Please sign in to comment.