@Alex84 Привет, так как нету репутации не смог ответить в лс, так что отвечу здесь
Афигеть, спасибо большое! Советы прям пушка, ответил на многое что меня интересовало) Спасибо еще раз за советы, буду дальше осваивать bas, таких людей как вы можно редко встретить)
GAUTH
-
Hello I am using the TOTP-generator module
const totp = require("totp-generator");
// Keys provided must be base32 strings, ie. only containing characters matching (A-Z, 2-7, =).
const token = totp("JBSWY3DPEHPK3PXP");console.log(token); // prints a 6-digit time-based token based on provided key and current time
I have the GAUTH secret saved as a variable but I'm not sure how to make the code find it. I tried using const token = totp("[[GAUTHSECRET]]"); but didn't work. Any help would be appreciated. I also want to save the token as a variable to input later on when activating authenticator in my program
Thanks!
-
Hello I am using the TOTP-generator module
const totp = require("totp-generator");
// Keys provided must be base32 strings, ie. only containing characters matching (A-Z, 2-7, =).
const token = totp("JBSWY3DPEHPK3PXP");console.log(token); // prints a 6-digit time-based token based on provided key and current time
I have the GAUTH secret saved as a variable but I'm not sure how to make the code find it. I tried using const token = totp("[[GAUTHSECRET]]"); but didn't work. Any help would be appreciated. I also want to save the token as a variable to input later on when activating authenticator in my program
Thanks!
var token = totp([[GAUTHSECRET]]); -
Hello I am using the TOTP-generator module
const totp = require("totp-generator");
// Keys provided must be base32 strings, ie. only containing characters matching (A-Z, 2-7, =).
const token = totp("JBSWY3DPEHPK3PXP");console.log(token); // prints a 6-digit time-based token based on provided key and current time
I have the GAUTH secret saved as a variable but I'm not sure how to make the code find it. I tried using const token = totp("[[GAUTHSECRET]]"); but didn't work. Any help would be appreciated. I also want to save the token as a variable to input later on when activating authenticator in my program
Thanks!
var token = totp([[GAUTHSECRET]]);Thanks Fox, your answer worked. I think I just forgot to remove " " initially
Do you know how I could store result as variable?
Many thanks for your help Fox