Allow to pass secrets to totp_face through a separate (ignored) header.

That header (`totp_face.secrets.h`) is listed in the .gitignore file for that directory, so that there is limited risk to commit it to GitHub by mistake (at least less than when the secrets are directly listed in `totp_face.c`). And this is also easier to use than totp_lfs_face (at least until secrets can be sent to that face over IR).
This commit is contained in:
Mathias Kende
2025-08-29 22:05:13 +02:00
parent 5ecc3d6384
commit ed7761cca4
3 changed files with 9 additions and 0 deletions
+4
View File
@@ -61,6 +61,10 @@
* o `algorithm` is one of the supported hashing algorithms listed above.
* o `timestep` is how often the TOTP refreshes in seconds. This is usually
* 30 seconds.
* o Alternatively, place the `credentials` variable as-is in a file named
* `totp_face.secrets.h` in this directory, and it will be included instead.
* This lowers the risk of commiting your OTP secrets to GitHub as that file
* is listed in the .gitignore file.
*
* If you have more than one secret key, press ALARM to cycle through them.
* Press LIGHT to cycle in the other direction or keep it pressed longer to