Home > Software engineering >  Token expiry time from ServiceBusClient class of Azure.Messaging.ServiceBus
Token expiry time from ServiceBusClient class of Azure.Messaging.ServiceBus

Time:01-21

If I create a ServiceBusClient using the Sas Token Method, is there a way(property) to get the token expiry time from the ServiceBusClient object? Because, I will discard the token and down the timeline, I want to be able to identify the expiry and refresh it before it throws the token expiry error.

CodePudding user response:

Looking at the ServiceBusClient documentation here, it is not possible to extract the token expiry time from the instance of that object.

This is something you will need to handle on your own.

  •  Tags:  
  • Related