Authorization: Bearer <yourjwttoken>. Currently, the token expires after 24 hours. You can GET the /refresh_token route to extend that expiration date.

This commit is contained in:
Reinhard Pointner 2017-04-11 17:40:32 +08:00
parent 37de6c9a15
commit 66ca2d08bf
1 changed files with 1 additions and 1 deletions

View File

@ -85,7 +85,7 @@ public class TheTVDBClient extends AbstractEpisodeListProvider implements Artwor
private String token = null;
private Instant tokenExpireInstant = null;
private Duration tokenExpireDuration = Duration.ofHours(1);
private Duration tokenExpireDuration = Duration.ofHours(23); // token expires after 24 hours
private String getAuthorizationToken() {
synchronized (tokenExpireDuration) {