Christian
Christian
CCConvex Community
Created by Christian on 2/10/2024 in #support-community
How is mutation authentication supposed to work?
@Michal Srb Seems legit, thanks for the update. I am curious why you chose to use the tokenIdentifier instead of the subject. From what i understand the difference between them is that tokenIdentifier = issuer + subject(The issuer is a url, and the subject is the userId provided by clerk) This is what the identity looks like when logged for clarification
tokenIdentifier: 'https://wordly-derdly-0.clerk.accounts.dev|user_eairnshtulikviflrlkrfv',
issuer: 'https://wordly-derdly-0.clerk.accounts.dev',
subject: 'user_eairnshtulikviflrlkrfv',
name: 'Michal Srb',
givenName: 'Michal',
familyName: 'Srb',
pictureUrl: 'https://img.clerk.com/eyJ0eXBlIjoicHJveHkiLCJzcmMiOiJodHRwczovL2ltYWdlcy5jbGVyay5kZXYvb2F1dGhfZ29vZ2xlL2ltZ18yY0JkRGhzdUxLcDBzZkhQMVZ4SEgwQ1JSQ2YifQ',
email: 'fakeemail@gmail.com',
emailVerified: true,
phoneNumberVerified: false,
updatedAt: '2024-02-11T21:39:03+00:00'
tokenIdentifier: 'https://wordly-derdly-0.clerk.accounts.dev|user_eairnshtulikviflrlkrfv',
issuer: 'https://wordly-derdly-0.clerk.accounts.dev',
subject: 'user_eairnshtulikviflrlkrfv',
name: 'Michal Srb',
givenName: 'Michal',
familyName: 'Srb',
pictureUrl: 'https://img.clerk.com/eyJ0eXBlIjoicHJveHkiLCJzcmMiOiJodHRwczovL2ltYWdlcy5jbGVyay5kZXYvb2F1dGhfZ29vZ2xlL2ltZ18yY0JkRGhzdUxLcDBzZkhQMVZ4SEgwQ1JSQ2YifQ',
email: 'fakeemail@gmail.com',
emailVerified: true,
phoneNumberVerified: false,
updatedAt: '2024-02-11T21:39:03+00:00'
17 replies
CCConvex Community
Created by Christian on 2/10/2024 in #support-community
How is mutation authentication supposed to work?
He's actually the only reason i'm checking out Convex lol
17 replies
CCConvex Community
Created by Christian on 2/10/2024 in #support-community
How is mutation authentication supposed to work?
Dang that link is #unknown
17 replies
CCConvex Community
Created by Christian on 2/10/2024 in #support-community
How is mutation authentication supposed to work?
That's unreal, having no race conditions is a game changer. So if it's ACID is it single threaded aswell?
17 replies
CCConvex Community
Created by Christian on 2/10/2024 in #support-community
How is mutation authentication supposed to work?
Thanks for the guidance. Yeah that makes sense, and i realized that a while ago. That "getUserIdentitity" function is used in the store function under the user.ts file on the template. Is there a way to enfore a unique on a schema value?
17 replies
CCConvex Community
Created by Christian on 2/9/2024 in #general
Efficiency of doing joins in JavaScript
OOhhh, wow that's frickin cool
4 replies