2026-01-27 10:00:51 +01:00
|
|
|
import { test, describe } from "vitest"
|
|
|
|
|
import { JWTService } from "./JWT.service"
|
|
|
|
|
|
|
|
|
|
describe("Tokens Objenious", () => {
|
|
|
|
|
const jwtService = new JWTService()
|
|
|
|
|
|
|
|
|
|
test("Solicicitud normal de auth", async () => {
|
2026-01-27 12:12:40 +01:00
|
|
|
const token = await jwtService.getAccessToken()
|
|
|
|
|
console.log("acceso objenious", token)
|
2026-01-27 12:31:37 +01:00
|
|
|
}),
|
|
|
|
|
|
|
|
|
|
test("Solicicitud de refresh de auth", async () => {
|
|
|
|
|
const token = await jwtService.tryRefreshToken()
|
|
|
|
|
console.log("acceso refresh objenious", token)
|
|
|
|
|
})
|
2026-01-27 10:00:51 +01:00
|
|
|
})
|
2026-01-27 14:48:44 +01:00
|
|
|
|