Khan / khan-api

Documentation for (and examples of) using the Khan Academy API
http://www.khanacademy.org
377 stars 75 forks source link

Token expiration #128

Open samfishman opened 6 years ago

samfishman commented 6 years ago

Can you clarify when user access tokens expire? We're seeing them come up fairly frequently and it is making it hard to implement an effective integration. The only information I could find on expirations was here: If the user's token expires, API requests will start receiving a 401 error. When this happens, your app should ask the user to authenticate again.

Is there any way to request a longer or infinite expiration window?

(Alternatively, an OAuth2 API with refresh tokens would serve our needs.)