https://supertokens.com/ logo
#general
Title
# general
a

aV

05/28/2022, 8:57 AM
@rp Is ULID supported for user ids?
r

rp

05/28/2022, 8:58 AM
Hey! We don’t yet support generating different types of user ids. Just v4 UUID
what’s the use case for wanting a different format?
a

aV

05/28/2022, 8:59 AM
sorting
r

rp

05/28/2022, 8:59 AM
Hmm
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

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