mirror of
https://github.com/LukeHagar/better-auth.git
synced 2025-12-10 12:27:44 +00:00
fix: upgrade better-auth utils and use subtle from better-auth utils (#1021)
This commit is contained in:
@@ -561,12 +561,12 @@
|
|||||||
"@types/react": "^18.3.14",
|
"@types/react": "^18.3.14",
|
||||||
"better-sqlite3": "^11.6.0",
|
"better-sqlite3": "^11.6.0",
|
||||||
"drizzle-orm": "^0.35.3",
|
"drizzle-orm": "^0.35.3",
|
||||||
"nanostores": "^0.11.3",
|
|
||||||
"happy-dom": "^15.11.7",
|
"happy-dom": "^15.11.7",
|
||||||
"hono": "^4.6.13",
|
"hono": "^4.6.13",
|
||||||
"listhen": "^1.9.0",
|
"listhen": "^1.9.0",
|
||||||
"mongodb": "^6.11.0",
|
"mongodb": "^6.11.0",
|
||||||
"mysql2": "^3.11.5",
|
"mysql2": "^3.11.5",
|
||||||
|
"nanostores": "^0.11.3",
|
||||||
"next": "^15.0.4",
|
"next": "^15.0.4",
|
||||||
"oauth2-mock-server": "^7.2.0",
|
"oauth2-mock-server": "^7.2.0",
|
||||||
"pg": "^8.13.1",
|
"pg": "^8.13.1",
|
||||||
@@ -580,7 +580,7 @@
|
|||||||
"vue": "^3.5.13"
|
"vue": "^3.5.13"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@better-auth/utils": "0.2.2",
|
"@better-auth/utils": "0.2.3",
|
||||||
"@better-fetch/fetch": "1.1.12",
|
"@better-fetch/fetch": "1.1.12",
|
||||||
"@noble/ciphers": "^0.6.0",
|
"@noble/ciphers": "^0.6.0",
|
||||||
"@noble/hashes": "^1.6.1",
|
"@noble/hashes": "^1.6.1",
|
||||||
|
|||||||
@@ -8,6 +8,7 @@ import {
|
|||||||
} from "../../api";
|
} from "../../api";
|
||||||
import type { BetterAuthPlugin, GenericEndpointContext } from "../../types";
|
import type { BetterAuthPlugin, GenericEndpointContext } from "../../types";
|
||||||
import { generateRandomString } from "../../crypto";
|
import { generateRandomString } from "../../crypto";
|
||||||
|
import { subtle } from "@better-auth/utils";
|
||||||
import { schema } from "./schema";
|
import { schema } from "./schema";
|
||||||
import type {
|
import type {
|
||||||
Client,
|
Client,
|
||||||
@@ -518,7 +519,7 @@ export const oidcProvider = (options: OIDCOptions) => {
|
|||||||
}
|
}
|
||||||
let secretKey = {
|
let secretKey = {
|
||||||
alg: "HS256",
|
alg: "HS256",
|
||||||
key: await crypto.subtle.generateKey(
|
key: await subtle.generateKey(
|
||||||
{
|
{
|
||||||
name: "HMAC",
|
name: "HMAC",
|
||||||
hash: "SHA-256",
|
hash: "SHA-256",
|
||||||
|
|||||||
10
pnpm-lock.yaml
generated
10
pnpm-lock.yaml
generated
@@ -1360,8 +1360,8 @@ importers:
|
|||||||
packages/better-auth:
|
packages/better-auth:
|
||||||
dependencies:
|
dependencies:
|
||||||
'@better-auth/utils':
|
'@better-auth/utils':
|
||||||
specifier: 0.2.2
|
specifier: 0.2.3
|
||||||
version: 0.2.2
|
version: 0.2.3
|
||||||
'@better-fetch/fetch':
|
'@better-fetch/fetch':
|
||||||
specifier: 1.1.12
|
specifier: 1.1.12
|
||||||
version: 1.1.12
|
version: 1.1.12
|
||||||
@@ -2443,8 +2443,8 @@ packages:
|
|||||||
resolution: {integrity: sha512-Z/yiTPj+lDVnF7lWeKCIJzaIkI0vYO87dMpZ4bg4TDrFe4XXLFWL1TbXU27gBP3QccxV9mZICCrnjnYlJjXHOA==}
|
resolution: {integrity: sha512-Z/yiTPj+lDVnF7lWeKCIJzaIkI0vYO87dMpZ4bg4TDrFe4XXLFWL1TbXU27gBP3QccxV9mZICCrnjnYlJjXHOA==}
|
||||||
engines: {node: '>=6.9.0'}
|
engines: {node: '>=6.9.0'}
|
||||||
|
|
||||||
'@better-auth/utils@0.2.2':
|
'@better-auth/utils@0.2.3':
|
||||||
resolution: {integrity: sha512-YlOin3pX3sc8VPRdzCOWqz6uHKitwxm/k8p6/2I1JYI0hgMWmEqqismyvEjtOKoiSTnu1huwSq+yzcN7ehu59w==}
|
resolution: {integrity: sha512-Ap1GaSmo6JYhJhxJOpUB0HobkKPTNzfta+bLV89HfpyCAHN7p8ntCrmNFHNAVD0F6v0mywFVEUg1FUhNCc81Rw==}
|
||||||
|
|
||||||
'@better-fetch/fetch@1.1.12':
|
'@better-fetch/fetch@1.1.12':
|
||||||
resolution: {integrity: sha512-B3bfloI/2UBQWIATRN6qmlORrvx3Mp0kkNjmXLv0b+DtbtR+pP4/I5kQA/rDUv+OReLywCCldf6co4LdDmh8JA==}
|
resolution: {integrity: sha512-B3bfloI/2UBQWIATRN6qmlORrvx3Mp0kkNjmXLv0b+DtbtR+pP4/I5kQA/rDUv+OReLywCCldf6co4LdDmh8JA==}
|
||||||
@@ -18536,7 +18536,7 @@ snapshots:
|
|||||||
'@babel/helper-string-parser': 7.25.9
|
'@babel/helper-string-parser': 7.25.9
|
||||||
'@babel/helper-validator-identifier': 7.25.9
|
'@babel/helper-validator-identifier': 7.25.9
|
||||||
|
|
||||||
'@better-auth/utils@0.2.2':
|
'@better-auth/utils@0.2.3':
|
||||||
dependencies:
|
dependencies:
|
||||||
uncrypto: 0.1.3
|
uncrypto: 0.1.3
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user