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
add optional chaining for algorithm name in TOTP URI generation (746f615)
normalize algorithm name for TOTP Auth URI generation (e5645d0)
simplify algorithm name extraction in TOTP URI generation (bab1ccc)
BREAKING CHANGES
Technically, we are changing the algorithm param that is returned from getTOTPAuthUri and that could be a breaking change for some people, but it shouldn't be a breaking change for most (any). So go ahead and update this without concern.
Convert Buffer and node crypto to web apis (#11) (e4b8a20)
BREAKING CHANGES
exported functions are now async
the name of the algorithm option has changed from SHA1 / SHA256 / etc. to SHA-1, SHA-256, etc.
NOTE: if you're looking at upgrading to this with the Epic Stack, you'll need to migrate your existing verifications. Here's some SQL you can use:
-- Update SHA1 to SHA-1
UPDATE "Verification"
SET "algorithm" = 'SHA-1'
WHERE "algorithm" = 'SHA1';
-- Update SHA256 to SHA-256
UPDATE "Verification"
SET "algorithm" = 'SHA-256'
WHERE "algorithm" = 'SHA256';
-- Update SHA512 to SHA-512
UPDATE "Verification"
SET "algorithm" = 'SHA-512'
WHERE "algorithm" = 'SHA512';
You could add this as a migration script, or run it as a one-time thing.