Forum Academy Marketplace Showcase Pricing Features

Authentication with API: What does "expires" mean

When I log a user in through the API, I get a token back together with an “expires” value of 31536000. Is that the time in milliseconds that this token is valid? I did a test yesterday, and it looks like the token I get today is the same as yesterday?

The documentation is very sparse on this:

That is a year in seconds.

So either it means the token expires in a year from when you get the token , or it expired back in 1971.

Maybe :slight_smile:

Well, a year seems quite long :slight_smile:

I know from experience that it’s more like one or two days. But I cannot figure out the math.

It should be in seconds indeed. If you see something different, please file a bug report, but it should be working.