From 7d7f3a220b01b9c0eb0abc4b50f5d0d48ade4f2b Mon Sep 17 00:00:00 2001 From: Simon Olofsson Date: Wed, 8 Apr 2020 16:38:36 +0200 Subject: [PATCH] Add hint about refreshing client-credential tokens --- README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README.md b/README.md index bf0cd304..fb1862c3 100644 --- a/README.md +++ b/README.md @@ -154,6 +154,8 @@ run(); When a token expires we need to refresh it. Simple OAuth2 offers the AccessToken class that add a couple of useful methods to refresh the access token when it is expired. +**Tokens obtained with the Client Credentials Flow may not be refreshed!** Just fetch a new token, when it's expired. + ```javascript async function run() { const tokenObject = {