Hi, is there any way to search for a field in the metadata? If yes, is it possible to index this field?
r
rp_st
07/28/2022, 4:52 AM
hey @Alankazam it's not possible to do this. The metadata object is stored as a raw TEXT field (stringified JSON).
Even indexing that column (in case of self hosted) won't help much.
If you want to search based on metadata, you should store that in your own db against the user ID.
SuperTokens is an open source authentication solution offering features like: Different types of login: Email / password, Passwordless (OTP or Magic link based).