Increase token validity

This commit is contained in:
Brahim Hadriche committed 2023-01-05 12:10:08 -05:00
1 parent 8a251b90db
commit cffbfde16a
1 file changed
+1 -1
+1 -1
View File
@@ -124,7 +124,7 @@ namespace Invidious
localIp = GetLocalIpAddress()
webServerPort = 8888
expire = TimeUtils.Now().AsSeconds() + 60 * 60 * 24 * 30 'A month from now
expire = TimeUtils.Now().AsSeconds() + 60 * 60 * 24 * 30 * 12 * 2 '2 years from now
callbackUrl = WebUtils.UrlEncode(`http://${localIp}:${webServerPort}${Invidious.TOKEN_CALLBACK}?referer=${instance}`)
return `${invidiousHost}/authorize_token?scopes=${Invidious.AUTH_SCOPE}&callback_url=${callbackUrl}&expire=${expire}`