Oauth stuff (#533)
* qrcode * add stuff * Some oauth stuff * remove some test code * Lint fix * Revert "add stuff" This reverts commit 8508471e4a0a2bfa06d4f04bfdece1f3c9191e1c. * Lint fix --------- Co-authored-by: github-action linter <githubaction@githubaction.com>
This commit is contained in:
1 parent
fde8eaa0c2
commit
c85ac0acf1
12 files changed
+344
-78
No files matched your search
@@ -1,4 +1,5 @@
|
||||
import "pkg:/components/Services/Invidious/InvidiousService.bs"
|
||||
import "pkg:/source/utils/StringUtils.bs"
|
||||
|
||||
@asynctask
|
||||
function ProfilesVerifyTokensTask(input as object) as object
|
||||
@@ -10,6 +11,9 @@ function ProfilesVerifyTokensTask(input as object) as object
|
||||
invalidProfiles = []
|
||||
|
||||
for each profileNode in profileContentNodes
|
||||
if not StringUtils.IsNullOrEmpty(profileNode.refreshToken)
|
||||
continue for
|
||||
end if
|
||||
if not service.VerifyTokenScope(profileNode.accessToken)
|
||||
invalidProfiles.push(profileNode)
|
||||
end if
|
||||
|
||||
Reference in new issue
Block a user