Skip to content

Commit

Permalink
chore: add ToString override for disposable token that returns trunca…
Browse files Browse the repository at this point in the history
…ted token (#493)
  • Loading branch information
pgautier404 authored Sep 14, 2023
1 parent 3f3920d commit 52a4310
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/Momento.Sdk/Responses/GenerateDisposableTokenResponse.cs
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,11 @@ public Success(_GenerateDisposableTokenResponse response)
Endpoint = response.Endpoint;
ExpiresAt = ExpiresAt.FromEpoch((int)response.ValidUntil);
}

public override string ToString()
{
return $"{AuthToken.Substring(0, 10)}...{AuthToken.Substring((AuthToken.Length - 10), 10)}";
}
}

/// <include file="../docs.xml" path='docs/class[@name="Error"]/description/*' />
Expand Down

0 comments on commit 52a4310

Please sign in to comment.