Merge pull request #107 from mkende/safe_totp

Allow to pass secrets to totp_face through a separate (ignored) header.
This commit is contained in:
voloved
2026-04-01 16:42:04 -04:00
committed by GitHub
3 changed files with 9 additions and 0 deletions
+4
View File
@@ -63,10 +63,14 @@ typedef struct {
////////////////////////////////////////////////////////////////////////////////
// Enter your TOTP key data below
#if __has_include("totp_face.secrets.h")
#include "totp_face.secrets.h"
#else
static totp_t credentials[] = {
CREDENTIAL(2F, "JBSWY3DPEHPK3PXP", SHA1, 30),
CREDENTIAL(AAC, "JBSWY3DPEHPK3PXP", SHA1, 30),
};
#endif
// END OF KEY DATA.
////////////////////////////////////////////////////////////////////////////////