Skip to content

Commit

Permalink
chore: ensure user data exists
Browse files Browse the repository at this point in the history
  • Loading branch information
ahmedrangel committed Feb 23, 2025
1 parent 77855d3 commit c779cd5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/runtime/server/lib/oauth/kick.ts
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ export function defineOAuthKickEventHandler({ config, onSuccess, onError }: OAut
},
})

if (!data.length) {
if (!data || !data.length) {
const error = createError({
statusCode: 500,
message: 'Could not get Kick user',
Expand Down

0 comments on commit c779cd5

Please sign in to comment.