fix: upgrade better-auth utils and use subtle from better-auth utils (#1021)

This commit is contained in:
Bereket Engida
2024-12-27 08:06:04 +03:00
committed by GitHub
parent f9fdf3b547
commit 2b68569921
3 changed files with 9 additions and 8 deletions

View File

@@ -561,12 +561,12 @@
"@types/react": "^18.3.14",
"better-sqlite3": "^11.6.0",
"drizzle-orm": "^0.35.3",
"nanostores": "^0.11.3",
"happy-dom": "^15.11.7",
"hono": "^4.6.13",
"listhen": "^1.9.0",
"mongodb": "^6.11.0",
"mysql2": "^3.11.5",
"nanostores": "^0.11.3",
"next": "^15.0.4",
"oauth2-mock-server": "^7.2.0",
"pg": "^8.13.1",
@@ -580,7 +580,7 @@
"vue": "^3.5.13"
},
"dependencies": {
"@better-auth/utils": "0.2.2",
"@better-auth/utils": "0.2.3",
"@better-fetch/fetch": "1.1.12",
"@noble/ciphers": "^0.6.0",
"@noble/hashes": "^1.6.1",

View File

@@ -8,6 +8,7 @@ import {
} from "../../api";
import type { BetterAuthPlugin, GenericEndpointContext } from "../../types";
import { generateRandomString } from "../../crypto";
import { subtle } from "@better-auth/utils";
import { schema } from "./schema";
import type {
Client,
@@ -518,7 +519,7 @@ export const oidcProvider = (options: OIDCOptions) => {
}
let secretKey = {
alg: "HS256",
key: await crypto.subtle.generateKey(
key: await subtle.generateKey(
{
name: "HMAC",
hash: "SHA-256",

10
pnpm-lock.yaml generated
View File

@@ -1360,8 +1360,8 @@ importers:
packages/better-auth:
dependencies:
'@better-auth/utils':
specifier: 0.2.2
version: 0.2.2
specifier: 0.2.3
version: 0.2.3
'@better-fetch/fetch':
specifier: 1.1.12
version: 1.1.12
@@ -2443,8 +2443,8 @@ packages:
resolution: {integrity: sha512-Z/yiTPj+lDVnF7lWeKCIJzaIkI0vYO87dMpZ4bg4TDrFe4XXLFWL1TbXU27gBP3QccxV9mZICCrnjnYlJjXHOA==}
engines: {node: '>=6.9.0'}
'@better-auth/utils@0.2.2':
resolution: {integrity: sha512-YlOin3pX3sc8VPRdzCOWqz6uHKitwxm/k8p6/2I1JYI0hgMWmEqqismyvEjtOKoiSTnu1huwSq+yzcN7ehu59w==}
'@better-auth/utils@0.2.3':
resolution: {integrity: sha512-Ap1GaSmo6JYhJhxJOpUB0HobkKPTNzfta+bLV89HfpyCAHN7p8ntCrmNFHNAVD0F6v0mywFVEUg1FUhNCc81Rw==}
'@better-fetch/fetch@1.1.12':
resolution: {integrity: sha512-B3bfloI/2UBQWIATRN6qmlORrvx3Mp0kkNjmXLv0b+DtbtR+pP4/I5kQA/rDUv+OReLywCCldf6co4LdDmh8JA==}
@@ -18536,7 +18536,7 @@ snapshots:
'@babel/helper-string-parser': 7.25.9
'@babel/helper-validator-identifier': 7.25.9
'@better-auth/utils@0.2.2':
'@better-auth/utils@0.2.3':
dependencies:
uncrypto: 0.1.3