You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Alternatively, [`@otplib/plugin-base32-alt`](https://www.npmjs.com/package/@otplib/plugin-base32-alt) provides bypass plugins for secrets in other encodings:
|`algorithm`|`sha1`| SHA-256/512 not supported by most apps |
165
+
|`digits`|`6`| 8-digit tokens not supported by most apps |
166
+
|`period`|`30`| 60-second period not supported by most apps |
167
+
|`secret`| Base32 string | Always Base32-encoded in QR codes/URIs |
168
+
169
+
If you need to provision an authenticator app via QR code, use [`@otplib/uri`](https://www.npmjs.com/package/@otplib/uri) to generate an `otpauth://totp/` URI — this is the standard format recognized by all major apps.
170
+
120
171
## Documentation
121
172
122
173
Full documentation available at [otplib.yeojz.dev](https://otplib.yeojz.dev):
0 commit comments