Save scope and expire fields with auth token

This commit is contained in:
Brahim Hadriche committed 2023-07-07 13:28:42 -04:00
1 parent e49aa9b7d8
commit 3add083f6b
5 files changed
+88 -11

No files matched your search

@@ -19,11 +19,17 @@ namespace Http
token = request.query["token"].DecodeUri().DecodeUriComponent()
referer = request.query["ref"].DecodeUri()
username = request.query["username"]
scopes = request.query["scopes"]
expire = request.query["expire"]
if username <> invalid
username = username.DecodeUriComponent().DecodeUriComponent()
end if
if scopes <> invalid
scopes = scopes.DecodeUriComponent()
end if
InvidiousSettings.SetAuthToken(token, referer, username)
InvidiousSettings.SetAuthToken(token, referer, username, scopes, expire)
server.task.top.login = true
end if
response.Redirect("/")