remove zod schema

This commit is contained in:
Zamitto 2024-06-13 23:11:40 -03:00
parent 7bbaae91c9
commit 9e5118d1dc
2 changed files with 1 additions and 8 deletions

View File

@ -12,8 +12,3 @@ export const downloadSourceSchema = z.object({
})
),
});
export const refreshTokenSchema = z.object({
accessToken: z.string(),
expiresIn: z.number(),
});

View File

@ -36,9 +36,7 @@ export class HydraApi {
refreshToken: this.userAuth.refreshToken,
});
const { accessToken, expiresIn } = refreshTokenSchema.parse(
response.data
);
const { accessToken, expiresIn } = response.data;
const tokenExpirationTimestamp =
now.getTime() + expiresIn - this.EXPIRATION_OFFSET_IN_MS;