There are three potential primary causes for a VxAccessTokenExpired
error:
- The token is generated correctly, but is being used (or reused) after the expiration time. The best practice is to only vend tokens when you are ready to use them. Using (or reusing) a token after the expiration time will trigger this error.
- The token expiration value has been set incorrectly when creating the access token. The best practice is to set the expiration time to a fixed number of seconds past the current time. In production, it is recommended that you create access tokens with a 90 second expiration (for an example of time calculation for expiration, see the following section).
Important: A token that has already been used returns VxAccessTokenExpired
(20121)
rather than VxAccessTokenAlreadyUsed (20120)
after it has passed its expiration time.
Important: Token expiration time must be an integer. Using a float value for the expiration time will result in an error.
The following examples show a 90 second expiration time for each engine:
Core:time(0L) + 90
Unity:TimeSpan.FromSeconds(90)
Unreal:FTimespan::FromSeconds(90)
Comments
0 comments
Article is closed for comments.