ChrisLi
CCConvex Community
•Created by ChrisLi on 11/29/2024 in #support-community
mutation retries
example from documentations:
import { v } from "convex/values"; import { internal } from "./_generated/api"; import { internalAction, mutation } from "./generated/server"; export const mutationThatSchedulesAction = mutation({ args: { text: v.string() }, handler: async (ctx, { text }) => { const taskId = await ctx.db.insert("tasks", { text }); await ctx.scheduler.runAfter(0, internal.myFunctions.actionThatCallsAPI, { taskId, text, }); }, }); export const actionThatCallsAPI = internalAction({ args: { taskId: v.id("tasks"), text: v.string() }, handler: (, args): void => { // do something withtaskId
andtext
, like call an API // then run another mutation to store the result }, });
6 replies
CCConvex Community
•Created by ChrisLi on 11/29/2024 in #support-community
mutation retries
Hi @lee , I mean in a mutation, I scheduled an Action
6 replies
CCConvex Community
•Created by ChrisLi on 11/29/2024 in #support-community
Is that possible to convert a type to validator?
actually, I looking for a solution to manage tyes and validators, and I found the following article, and it helps me a lot: https://stack.convex.dev/types-cookbook
7 replies
CCConvex Community
•Created by ChrisLi on 11/29/2024 in #support-community
Is that possible to convert a type to validator?
thanks for your answers, I will take a look at other options!
7 replies
CCConvex Community
•Created by ChrisLi on 11/26/2024 in #support-community
convex google oauth issue
example google profile:
'googleProfile' {
iss: 'https://accounts.google.com',
azp: '9529a73vbu.apps.googleusercontent.com',
aud: '95pps.googleusercontent.com',
sub: '1038559659',
email: 'chriom',
email_verified: true,
at_hash: 'ySSww',
name: 'Chr',
picture: 'https://lh3.googleuserccom/a/ACg8ocL7LcDPg1XJj6-c',
given_name: 'Chris',
family_name: 'Li',
iat: 1732652236,
exp: 1732655836
}
4 replies
CCConvex Community
•Created by ChrisLi on 11/22/2024 in #support-community
Custom JWT token for authentication
ok, so jwt strategy is not supported by convex/auth, right?
25 replies
CCConvex Community
•Created by ChrisLi on 11/22/2024 in #support-community
Custom JWT token for authentication
yep
25 replies
CCConvex Community
•Created by ChrisLi on 11/22/2024 in #support-community
Custom JWT token for authentication
thanks!
25 replies
CCConvex Community
•Created by ChrisLi on 11/22/2024 in #support-community
Custom JWT token for authentication
hope this makes sense
25 replies
CCConvex Community
•Created by ChrisLi on 11/22/2024 in #support-community
Custom JWT token for authentication
manually manage the authentication, still want the ability to call const uid = await getAuthUserId(ctx); in functions
25 replies
CCConvex Community
•Created by ChrisLi on 11/22/2024 in #support-community
Custom JWT token for authentication
in this case, I have no idea of how to connect it with convex/auth, so I want to try to issue a custom token to the discord activity client.
25 replies
CCConvex Community
•Created by ChrisLi on 11/22/2024 in #support-community
Custom JWT token for authentication
Context:
My website has another use case as a Discord activity. Outside Discord, I use Google login with Convex/auth. But in the Discord, it will send a code to my convex backend to get access token.
25 replies
CCConvex Community
•Created by ChrisLi on 11/22/2024 in #support-community
Custom JWT token for authentication
@ballingt after reading the docs, I still don't know how to create a custom token for authentication 🥲
25 replies
CCConvex Community
•Created by ChrisLi on 9/6/2024 in #support-community
Http actions VS Actions
That makes more sense to me! Thanks!
6 replies
CCConvex Community
•Created by ChrisLi on 6/20/2024 in #support-community
Discord activities Content Security Policy issue
ahhh, ya, actually there is no more errors appears after I use the discord url to create the Convex Client!
57 replies