Devben
CCConvex Community
•Created by ibrahimyaacob on 7/26/2024 in #support-community
Convex Auth on Server Component
Thank you michal I appreciate your hard work and am very happy
10 replies
CCConvex Community
•Created by Devben on 8/12/2024 in #support-community
convex auth: Unable to decode ID: Invalid ID length 5
Now when I logout and logIn am seeing same thing
34 replies
CCConvex Community
•Created by Devben on 8/12/2024 in #support-community
convex auth: Unable to decode ID: Invalid ID length 5
import { query } from "./_generated/server";
import { auth } from "./auth";
export const currentUser = query({
args: {},
handler: async (ctx) => {
const userId = await auth.getUserId(ctx);
const length = userId?.length;
console.log(length);
console.log(userId);
if (userId === null || userId.length <= 5) {
console.log("Invalid user ID");
return null;
}
return await ctx.db.get(userId);
},
});
34 replies
CCConvex Community
•Created by Devben on 8/12/2024 in #support-community
convex auth: Unable to decode ID: Invalid ID length 5
nothing in convex log
34 replies
CCConvex Community
•Created by Devben on 8/12/2024 in #support-community
convex auth: Unable to decode ID: Invalid ID length 5
[CONVEX Q(currentUser:currentUser)] [LOG] undefined
logging.js:37 [CONVEX Q(currentUser:currentUser)] [LOG] null
logging.js:37 [CONVEX Q(currentUser:currentUser)] [LOG] 'Invalid user ID'
34 replies
CCConvex Community
•Created by Devben on 8/12/2024 in #support-community
convex auth: Unable to decode ID: Invalid ID length 5
Nope I try to refresh and seeing this
34 replies
CCConvex Community
•Created by Devben on 8/12/2024 in #support-community
convex auth: Unable to decode ID: Invalid ID length 5
No more error
34 replies
CCConvex Community
•Created by Devben on 8/12/2024 in #support-community
convex auth: Unable to decode ID: Invalid ID length 5
I think it's working now haha
34 replies
CCConvex Community
•Created by Devben on 8/12/2024 in #support-community
convex auth: Unable to decode ID: Invalid ID length 5
Hey hold on bro
34 replies
CCConvex Community
•Created by Devben on 8/12/2024 in #support-community
convex auth: Unable to decode ID: Invalid ID length 5
Everything works fine
34 replies
CCConvex Community
•Created by Devben on 8/12/2024 in #support-community
convex auth: Unable to decode ID: Invalid ID length 5
If I change it from ConvexAuthNextjsProvider ConvexAuthProvider
34 replies
CCConvex Community
•Created by Devben on 8/12/2024 in #support-community
convex auth: Unable to decode ID: Invalid ID length 5
Just to let you know
34 replies
CCConvex Community
•Created by Devben on 8/12/2024 in #support-community
convex auth: Unable to decode ID: Invalid ID length 5
The current User function?
34 replies
CCConvex Community
•Created by Devben on 8/12/2024 in #support-community
convex auth: Unable to decode ID: Invalid ID length 5
this is the length
34 replies
CCConvex Community
•Created by Devben on 8/12/2024 in #support-community
convex auth: Unable to decode ID: Invalid ID length 5
[CONVEX Q(currentUser:currentUser)] [LOG] 32
34 replies
CCConvex Community
•Created by Devben on 8/12/2024 in #support-community
convex auth: Unable to decode ID: Invalid ID length 5
Don't worry about the id it's just a random gmail
34 replies
CCConvex Community
•Created by Devben on 8/12/2024 in #support-community
convex auth: Unable to decode ID: Invalid ID length 5
34 replies
CCConvex Community
•Created by Devben on 8/12/2024 in #support-community
convex auth: Unable to decode ID: Invalid ID length 5
on it
34 replies
CCConvex Community
•Created by Devben on 8/12/2024 in #support-community
convex auth: Unable to decode ID: Invalid ID length 5
oh! am sorry
34 replies