Skip to content

Commit 6c73931

Browse files
committed
refactor
1 parent 288597e commit 6c73931

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

index.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
const base64UrlRegex = /-|_/
12
const encryptionAlgorithm = "AES-GCM"
23
const ivBytesLength = 12
34

@@ -89,9 +90,6 @@ export async function encryptTextSymmetrically(
8990
}
9091

9192

92-
const base64UrlRegex = /-|_/
93-
94-
9593
/**
9694
* Decrypts a value with a `CryptoKey` previously generated with `createSymmetricKeyFromText`.
9795
*

0 commit comments

Comments
 (0)