Fixed a few things
This commit is contained in:
@ -8,6 +8,7 @@ export async function updateTwitchToken(userId: string) {
|
||||
}
|
||||
})
|
||||
if (!connection) {
|
||||
console.log('Connections do not exist.')
|
||||
return null
|
||||
}
|
||||
|
||||
@ -48,6 +49,7 @@ export async function updateTwitchToken(userId: string) {
|
||||
const { access_token, expires_in, refresh_token, token_type } = token
|
||||
|
||||
if (!access_token || !refresh_token || token_type !== "bearer") {
|
||||
console.log('Failed to grab token.')
|
||||
return null
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user