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:
parent
37de6c9a15
commit
66ca2d08bf
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue