Spoons icon indicating copy to clipboard operation
Spoons copied to clipboard

How to make Token work for multiple secret keys?

Open m0nhawk opened this issue 4 years ago • 2 comments

From documentation I can't get how to make Token work with multiple secret keys.

This doesn't work and on F8 it produces the OTP for key_2.

Install:andUse('Token', {
  hotkeys = { generate = { hyper, "F8" } },
  config = { secret_key = "key_1" }
})
Install:andUse('Token', {
  hotkeys = { generate = { hyper, "F10" } },
  config = { secret_key = "key_2" }
})

m0nhawk avatar Dec 29 '19 07:12 m0nhawk

Any suggestions @teunvink

cmsj avatar May 21 '20 19:05 cmsj

Not really, this is so far from what I originally wrote that I have no idea. My own code can be included more than once with different keybinds and different token seeds without any problems, I use that for myself that way.

teunvink avatar May 22 '20 07:05 teunvink