Maj packages
This commit is contained in:
1
utils/oauthGen.js
Normal file → Executable file
1
utils/oauthGen.js
Normal file → Executable file
@@ -1,5 +1,4 @@
|
||||
module.exports = oauthGen = (async (client_id, redirect_uri, scope) => {
|
||||
console.log(scope)
|
||||
let queries = {
|
||||
response_type: 'code',
|
||||
client_id,
|
||||
|
||||
@@ -7,5 +7,5 @@ module.exports = validateToken = (async (access_token) => {
|
||||
}
|
||||
}).then(response => {
|
||||
return true
|
||||
}).catch(error => { console.error(error.response.data) })
|
||||
}).catch(error => { if (error.response.data.message == 'invalid access token') console.error(error.response.data) })
|
||||
})
|
||||
Reference in New Issue
Block a user