18 lines
479 B
TypeScript
18 lines
479 B
TypeScript
import { test, describe } from "vitest"
|
|
import { jwtService } from "../config/jwtService.config.js"
|
|
|
|
describe("Tokens Objenious", () => {
|
|
const jwt = jwtService
|
|
|
|
test("Solicicitud normal de auth", async () => {
|
|
const token = await jwt.getAccessToken()
|
|
console.log("acceso objenious", token)
|
|
}),
|
|
|
|
test("Solicicitud de refresh de auth", async () => {
|
|
const token = await jwt.tryRefreshToken()
|
|
console.log("acceso refresh objenious", token)
|
|
})
|
|
})
|
|
|