Fixed a few things

This commit is contained in:
Tom
2025-01-07 15:52:47 +00:00
parent 624b3fa63b
commit dd8530b589
4 changed files with 38 additions and 36 deletions

View File

@ -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
}