Skip to content

Commit 279a849

Browse files
authored
update better-auth in solid convex example so @noble/ciphers passes trustPolicy (#7656)
1 parent ac821f4 commit 279a849

3 files changed

Lines changed: 234 additions & 223 deletions

File tree

‎examples/solid/start-convex-better-auth/convex/auth.ts‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import { betterAuth } from 'better-auth'
44
import { components } from './_generated/api'
55
import { query } from './_generated/server'
66
import type { GenericCtx } from '@convex-dev/better-auth'
7+
import type { BetterAuthOptions } from 'better-auth'
78
import type { DataModel } from './_generated/dataModel'
89

910
const siteUrl = process.env.SITE_URL!
@@ -16,7 +17,7 @@ export const createAuth = (
1617
ctx: GenericCtx<DataModel>,
1718
{ optionsOnly } = { optionsOnly: false },
1819
) => {
19-
return betterAuth({
20+
return betterAuth<BetterAuthOptions>({
2021
// disable logging when createAuth is called just to generate options.
2122
// this is not required, but there's a lot of noise in logs without it.
2223
logger: {

‎examples/solid/start-convex-better-auth/package.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
"@tanstack/solid-router": "^1.170.16",
1717
"@tanstack/solid-router-devtools": "^1.167.0",
1818
"@tanstack/solid-start": "^1.168.26",
19-
"better-auth": "^1.3.27",
19+
"better-auth": "^1.6.19",
2020
"clsx": "^2.1.1",
2121
"convex": "^1.28.2",
2222
"convex-solidjs": "^0.0.3",

0 commit comments

Comments
 (0)