Save scope and expire fields with auth token
This commit is contained in:
1 parent
e49aa9b7d8
commit
3add083f6b
5 files changed
+88
-11
No files matched your search
@@ -203,10 +203,10 @@ async function getAccessToken(invidiousInstance) {
|
||||
server.close()
|
||||
})
|
||||
|
||||
const scope = ":*"
|
||||
const scopes = ":*"
|
||||
const expire = Date.now() + 60 * 60 * 2;
|
||||
const callbackUrl = `http://${ip.address()}:${port}/invidious/token_callback`
|
||||
const authLink = `${invidiousInstance}/authorize_token?scopes=${scope}&callback_url=${callbackUrl}&expire=${expire}`
|
||||
const authLink = `${invidiousInstance}/authorize_token?scopes=${scopes}&callback_url=${callbackUrl}&expire=${expire}`
|
||||
|
||||
server = app.listen(port, () => {
|
||||
console.log(`server is listening on http://localhost:${port}`);
|
||||
|
||||
Reference in new issue
Block a user