first commit

This commit is contained in:
2026-04-14 19:44:21 -05:00
commit 068576cf4b
36 changed files with 13680 additions and 0 deletions

View File

@@ -0,0 +1,9 @@
import { handleLogin } from '../../utils/auth-service'
/**
* Endpoint de login do Auth Service.
* Recebe credenciais e retorna access/refresh token.
*/
export default defineEventHandler(async (event) => {
return handleLogin(event)
})

View File

@@ -0,0 +1,9 @@
import { handleRefresh } from '../../utils/auth-service'
/**
* Endpoint para renovar sessão com refresh token.
* Retorna novo access token e novo refresh token rotacionado.
*/
export default defineEventHandler(async (event) => {
return handleRefresh(event)
})