improved

ASP.NET Auth SDK 2.1.0 Release

The latest version of the ASP.NET Auth SDK has the following enhancements:

  • The WristbandAuthConfig class can now take an optional TokenExpirationBuffer configuration. This buffer time (in seconds) gets subtracted from the access token’s expiration time. This causes the token to be treated as expired before its actual expiration, helping to avoid token expiration during API calls. The default value is 60 seconds if not explicitly configured.
  • The CallbackData and TokenData types now return an ExpiresAt field. This is the absolute expiration time of the access token in milliseconds since the Unix epoch. The TokenExpirationBuffer configuration is accounted for in this value. Developers no longer need to calculate this in their code.
  • Validations for the LoginStateSecret now allow for any plaintext 32+ character string.