The Azure AI Vision Face API's limited access tokens for liveness detection have a maximum expiration time of 24 hours (86,400 seconds). The expired Time parameter can be set between 60 seconds and 86,400 seconds when issuing tokens via the issue Limited Access Token API. Tokens valid for 7 days or longer (e.g., 3 or 6 months) are not supported.
kindly refer the link Use limited access tokens for Face
Microsoft advises automating token refresh in production to prevent service disruption, as longer-duration tokens are not configurable for production deployments.
This expiration behavior is consistent across Azure customers and is not dependent on subscription type (CSP vs. ISV).
For liveness detection, session authorization tokens expire after 48 hours or sooner if deleted. Thus, session management and timely token renewal are necessary to maintain uninterrupted service
Hope this helps. Do let us know if you any further queries.
If this answers your query, do click Accept Answer
and Yes
for was this answer helpful. And, if you have any further query do let us know.