The lifetime of an access token on the Loket.nl API is almost 60 minutes (3599 seconds), as can be seen in a data container:
Loket.nl uses OAuth for user authentication. Both the Code Grant Flow with a refresh token and the Implicit Grant Flow are supported. In practice, both the Implicit Grant and Code Grant Flow are always available on a Loket.nl API app.
Both deliver an access token. An access token has a lifetime on Loket.nl of 60 minutes minus 1 second.
On Invantive Cloud, refresh tokens can be generated via the “Pre-authentication” screen for your own Loket.nl app (client ID) and for the Invantive products. See also OAuth access en refresh tokens genereren met Invantive Cloud.
When registering a Loket.nl Power BI database, a refresh token is also automatically created, as described on Verbind Power BI met Loket.nl (REST).
Via settings on Invantive’s Loket REST SQL driver, the renewal of the refresh token and access token can be forced, as described on Verversen van OAuth access token en refresh token configureren, inclusief Exact Online.
A published application on the Loket.nl API has numerous “scopes”. Depending on the scopes, Loket.nl tables are partially available. Correctly setting up and authorising scopes on Loket.nl takes a relatively long lead time.
