Skip to content

Commit

Permalink
chore: remove extra logs
Browse files Browse the repository at this point in the history
  • Loading branch information
atinux committed Nov 29, 2023
1 parent 5deef5f commit 2ad17ea
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
1 change: 0 additions & 1 deletion src/runtime/server/lib/oauth/discord.ts
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,6 @@ export function discordEventHandler({ config, onSuccess, onError }: OAuthConfig)
return { error }
})
if (tokens.error) {
console.log(tokens)
const error = createError({
statusCode: 401,
message: `Discord login failed: ${tokens.error?.data?.error_description || 'Unknown error'}`,
Expand Down
3 changes: 1 addition & 2 deletions src/runtime/server/lib/oauth/microsoft.ts
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ export function microsoftEventHandler({ config, onSuccess, onError }: OAuthConfi

const redirectUrl = getRequestURL(event).href
if (!code) {

const scope = config.scope && config.scope.length > 0 ? config.scope : ['User.Read']
// Redirect to Microsoft Oauth page
return sendRedirect(
Expand Down Expand Up @@ -127,7 +127,6 @@ export function microsoftEventHandler({ config, onSuccess, onError }: OAuthConfi
return { error }
})
if (user.error) {
console.log(user.error)
const error = createError({
statusCode: 401,
message: `Microsoft login failed: ${user.error || 'Unknown error'}`,
Expand Down

0 comments on commit 2ad17ea

Please sign in to comment.