lnajim
lnajim
CCConvex Community
Created by lnajim on 1/18/2025 in #support-community
Retrieve Authenticate User ConvexAuth
I succed thx @tom @Yash
7 replies
CCConvex Community
Created by lnajim on 1/18/2025 in #support-community
Retrieve Authenticate User ConvexAuth
Hi Tom I tried to follow the convex auth integration on nextjs and I want to dispaly the email of the current user (the authentitcated one but I got null for the console.log of the Found user and I got true when the I console log is Authenticated
7 replies
CCConvex Community
Created by lnajim on 1/17/2025 in #support-community
ConvexAuth - Nextjs - Reset OTP - Password reset
sorry again
7 replies
CCConvex Community
Created by lnajim on 1/17/2025 in #support-community
ConvexAuth - Nextjs - Reset OTP - Password reset
I m so dumb it jsut my console log 😦
7 replies
CCConvex Community
Created by lnajim on 1/17/2025 in #general
Convex Auth: Cannot read properties of undefined (reading 'length')
ok
20 replies
CCConvex Community
Created by lnajim on 1/17/2025 in #general
Convex Auth: Cannot read properties of undefined (reading 'length')
thx, may I ask you another question ?
20 replies
CCConvex Community
Created by lnajim on 1/17/2025 in #general
Convex Auth: Cannot read properties of undefined (reading 'length')
I use that code
"use client";

import { ConvexReactClient } from "convex/react";
import { ConvexAuthProvider } from "@convex-dev/auth/react";
const convex = new ConvexReactClient(process.env.NEXT_PUBLIC_CONVEX_URL!);

export default function ConvexClientProvider({
children,
}: {
children: React.ReactNode;
}) {
return (
<ConvexAuthProvider client={convex}>
{children}
</ConvexAuthProvider>
);
}
"use client";

import { ConvexReactClient } from "convex/react";
import { ConvexAuthProvider } from "@convex-dev/auth/react";
const convex = new ConvexReactClient(process.env.NEXT_PUBLIC_CONVEX_URL!);

export default function ConvexClientProvider({
children,
}: {
children: React.ReactNode;
}) {
return (
<ConvexAuthProvider client={convex}>
{children}
</ConvexAuthProvider>
);
}
. instead of that one
"use client";

import { ConvexAuthNextjsProvider } from "@convex-dev/auth/nextjs";
import { ConvexReactClient } from "convex/react";
import { ReactNode } from "react";

const convex = new ConvexReactClient(process.env.NEXT_PUBLIC_CONVEX_URL!);

export function ConvexClientProvider({ children }: { children: ReactNode }) {
return (
<ConvexAuthNextjsProvider client={convex}>
{children}
</ConvexAuthNextjsProvider>
);
}
"use client";

import { ConvexAuthNextjsProvider } from "@convex-dev/auth/nextjs";
import { ConvexReactClient } from "convex/react";
import { ReactNode } from "react";

const convex = new ConvexReactClient(process.env.NEXT_PUBLIC_CONVEX_URL!);

export function ConvexClientProvider({ children }: { children: ReactNode }) {
return (
<ConvexAuthNextjsProvider client={convex}>
{children}
</ConvexAuthNextjsProvider>
);
}
20 replies
CCConvex Community
Created by lnajim on 1/17/2025 in #general
Convex Auth: Cannot read properties of undefined (reading 'length')
thx you for your quick help
20 replies
CCConvex Community
Created by lnajim on 1/17/2025 in #general
Convex Auth: Cannot read properties of undefined (reading 'length')
now I remove it and put the correct one I dont have it anymore 🙂
20 replies
CCConvex Community
Created by lnajim on 1/17/2025 in #general
Convex Auth: Cannot read properties of undefined (reading 'length')
but I think I made a mistake when I implement the provide into my layout in mix up the react documenation and the nextjs that why I use the ConvexClientProivder from react for my next js project
20 replies
CCConvex Community
Created by lnajim on 1/17/2025 in #general
Convex Auth: Cannot read properties of undefined (reading 'length')
"@convex-dev/auth@^0.0.77": version "0.0.77" resolved "https://registry.yarnpkg.com/@convex-dev/auth/-/auth-0.0.77.tgz#8291440ab1cb7ef54a4191dbe378ed0bb0ab18d3" integrity sha512-+xi4D2CvKmXucqirv8gMmYkUA996R/MtdVZ4Da8HmkY3rzUo/JkkI8bfigwgO3OpCEV4xk7iGFDxGOUIbFEkww== dependencies: arctic "^1.2.0" cookie "^1.0.1" jose "^5.2.2" jwt-decode "^4.0.0" lucia "^3.2.0" oauth4webapi "^3.1.2" oslo "^1.1.2" path-to-regexp "^6.3.0" server-only "^0.0.1"
20 replies
CCConvex Community
Created by lnajim on 1/17/2025 in #general
Convex Auth: Cannot read properties of undefined (reading 'length')
that my versin
20 replies
CCConvex Community
Created by lnajim on 1/17/2025 in #general
Convex Auth: Cannot read properties of undefined (reading 'length')
Hi @Tom "@convex-dev/auth": "^0.0.77",
20 replies