Skip to content

Commit 61f664a

Browse files
committed
chore(migration): revoke passkey on the former domain
1 parent 567a62a commit 61f664a

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
exports.shorthands = undefined;
2+
3+
exports.up = async (pgm) => {
4+
await pgm.db.query(`
5+
DELETE FROM authenticators;
6+
`);
7+
await pgm.db.query(`
8+
UPDATE users
9+
SET force_2fa = false
10+
WHERE encrypted_totp_key IS NULL;
11+
`);
12+
};
13+
14+
exports.down = async (pgm) => {};

0 commit comments

Comments
 (0)