TwelthDd
TTCTheo's Typesafe Cult
•Created by TwelthDd on 8/22/2024 in #questions
clerk auth default metadata
hello,
to start this of some basic info:
i am currently working on a learning project which is a sass using react, next.js and clerk auth with the t3 stack
i currently am implementing a sort of token system (and basic role system but thats not very important) utilizing clerks user metadata feature for that as i currently am not using a stand alone db. i was wondering is there was a simple way to add default metadata when a user is created for example when a user is created the start with 100 tokens?
currently i am utilizing private metadata for this and the structure looks like this: { "role": "admin", "tokens": 99999 } and utilize these functions for basic manipulation of that metadata:
7 replies