Increase token validity
This commit is contained in:
1 parent
8a251b90db
commit
cffbfde16a
1 file changed
+1
-1
@@ -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}`
|
||||
|
||||
Reference in new issue
Block a user