Generates an otpauth uri
The "user" and "service" parameters will be passed to encodeURIComponent for encoding
- Source:
Parameters:
Name | Type | Description |
---|---|---|
user |
string
|
the name/id of your user |
service |
string
|
the name of your service |
secret |
string
|
your secret that is used to generate the token |
options |
object
|
additional options. |
Returns:
- Type:
-
string
otpauth uri. Example: otpauth://totp/user:localhost?secret=NKEIBAOUFA