small tweak

This commit is contained in:
Brahim Hadriche committed 2023-01-05 12:11:07 -05:00
1 parent cffbfde16a
commit ad54f89577
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 * 12 * 2 '2 years from now
expire = TimeUtils.Now().AsSeconds() + 60 * 60 * 24 * 365 * 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}`