question

chrispetchey avatar image
chrispetchey asked chrispetchey commented

OAuth uses different timestamp to other API functions

I've found that OAuth returns access token and refresh token expiry dates as unix timestamps but in seconds where as other apis use milliseconds

For example, my call to refresh token returns me "access_token_expiration":1706549066 (10 digits)

where as a POST call to /v1/customers gives me

"created" : 1706547596608, (13 digits)

REST API
10 |2000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

1 Answer

·
bryanvargas avatar image
bryanvargas answered chrispetchey commented

Yes that is correct. Not sure what your questions is.

1 comment
10 |2000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

chrispetchey avatar image chrispetchey commented ·
Just that it caused me some headaches when my json unixtime converter was rejecting what was supposed to be a unixdatetimestamp
0 Likes 0 ·

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Welcome to the
Clover Developer Community