lavuy
lavuy

Reputation: 191

Microsoft Cognitive auth token expiration

TL;DR What's the expiration time of a Microsoft Cognitive Services auth token?

we're migrating our translator service calls from Bing to Microsoft Cognitive Services, which requires using a different auth key.

The old auth key had an "expires_in" field which set the expiration time for the token, however there isn't such a field in the new auth token and I can't find any documentation stating when it expires.

Thanks!

Upvotes: 1

Views: 845

Answers (1)

cthrash
cthrash

Reputation: 2973

For the few properties that still use the two-stage auth (Speech, for example) the tokens expire in 10 minutes (doc).

For Translator, you should simply supply API key as the Ocp-Apim-Subscription-Key header value (doc).

Upvotes: 1

Related Questions