misc: addressed comments

This commit is contained in:
Sheen Capadngan
2024-11-20 18:56:16 +08:00
parent 3be3d807d2
commit b5287d91c0
4 changed files with 20 additions and 121 deletions
@@ -52,12 +52,15 @@ export const TotpProvider = (): TDynamicProviderFns => {
return { entityId, data: { TOTP: authenticatorInstance.generate(secret) } };
};
const revoke = async (inputs: unknown, entityId: string) => {
const revoke = async (_inputs: unknown, entityId: string) => {
return { entityId };
};
const renew = async (inputs: unknown, entityId: string) => {
return { entityId };
// eslint-disable-next-line @typescript-eslint/no-unused-vars
const renew = async (_inputs: unknown, _entityId: string) => {
throw new BadRequestError({
message: "Lease renewal is not supported for TOTPs"
});
};
return {