Join Discord
Powered by
<@498057949541826571> Is ULID supported for user i...
# general
a
aV
05/28/2022, 8:57 AM
@rp_st
Is ULID supported for user ids?
r
rp_st
05/28/2022, 8:58 AM
Hey! We don’t yet support generating different types of user ids. Just v4 UUID
rp_st
05/28/2022, 8:58 AM
what’s the use case for wanting a different format?
a
aV
05/28/2022, 8:59 AM
sorting
r
rp_st
05/28/2022, 8:59 AM
Hmm
rp_st
05/28/2022, 8:59 AM
You could map the user ids we have with your own by overriding all the recipe functions
a
aV
05/28/2022, 9:01 AM
I was wondering if I could just inject an env variable with type of id to use. say ID_TYPE=ulid
r
rp_st
05/28/2022, 9:02 AM
Right yea. That’s not possible unfortunately. But feel free to open an issue about this on our GitHub (supertokens-core)
a
aV
05/28/2022, 9:03 AM
ok I will
5
Views
Previous
Next