feat: enhance login and error handling (#423)

This commit is contained in:
Joaquín Sánchez 2022-12-14 00:12:16 +01:00 committed by GitHub
parent 1f5b0cf5ef
commit 110e7ae61f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 61 additions and 8 deletions

View file

@ -18,7 +18,6 @@ export default defineEventHandler(async (event) => {
redirect_uri: getRedirectURI(server),
response_type: 'code',
})
const url = `https://${server}/oauth/authorize?${query}`
await sendRedirect(event, url, 302)
return `https://${server}/oauth/authorize?${query}`
})