How does the authentication part of your API work?
How long is the access token valid? When will it expire?
The access token is valid for 90 days.
It would be nice to receive a push message when an access token is about to expire (e.g. 7 days before)
Agreed, this would be nice ;) We're looking into this already.
I don't understand how OAuth2 works
For a nice tutorial about OAuth2, please check this link.