mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-14 13:22:08 +00:00
misc: added timer
This commit is contained in:
@@ -65,7 +65,10 @@ export const TotpProvider = (): TDynamicProviderFns => {
|
||||
authenticatorInstance.options = { step: period };
|
||||
}
|
||||
|
||||
return { entityId, data: { TOTP: authenticatorInstance.generate(secret) } };
|
||||
return {
|
||||
entityId,
|
||||
data: { TOTP: authenticatorInstance.generate(secret), TIME_REMAINING: authenticatorInstance.timeRemaining() }
|
||||
};
|
||||
};
|
||||
|
||||
const revoke = async (_inputs: unknown, entityId: string) => {
|
||||
|
||||
Reference in New Issue
Block a user