feat: add clerk auth support with convex (#548)

This commit is contained in:
Aman Varshney
2025-08-29 00:21:08 +05:30
committed by GitHub
parent 8d48ae0359
commit 54bcdf1cbc
153 changed files with 1954 additions and 771 deletions

View File

@@ -12,7 +12,7 @@ export default defineNuxtPlugin(() => {
const rpcLink = new RPCLink({
url: rpcUrl,
{{#if auth}}
{{#if (eq auth "better-auth")}}
fetch(url, options) {
return fetch(url, {
...options,

View File

@@ -26,7 +26,7 @@ export const link = new RPCLink({
{{else}}
url: `${import.meta.env.VITE_SERVER_URL}/rpc`,
{{/if}}
{{#if auth}}
{{#if (eq auth "better-auth")}}
fetch(url, options) {
return fetch(url, {
...options,

View File

@@ -14,7 +14,7 @@ export const queryClient = new QueryClient({
export const link = new RPCLink({
url: `${import.meta.env.VITE_SERVER_URL}/rpc`,
{{#if auth}}
{{#if (eq auth "better-auth")}}
fetch(url, options) {
return fetch(url, {
...options,

View File

@@ -15,7 +15,7 @@ export const queryClient = new QueryClient({
export const link = new RPCLink({
url: `${PUBLIC_SERVER_URL}/rpc`,
{{#if auth}}
{{#if (eq auth "better-auth")}}
fetch(url, options) {
return fetch(url, {
...options,