Closed Lehoczky-peakfs closed 4 months ago
Hey @Lehoczky-peakfs we did not add strongly typed literals cause we want to allow users to add their own custom factor IDs as well.
As per the docs update, I agree. We should use the ENUMS defined in the lib, and not strings. Keeping this issue open until that is done.
Thanks
Hey there 👋
While working with the MFA recipe, it is possible to have a typo when someone is declaring the
firstFactors
option:Is it possible to change the type of this field? Right now, it is
string[]
, but it could be a string literal union instead, and only allow values from theFactorIds
object.If it is not ideal, another improvement could be to use the
FactorIds
object in the documentation examples, like this:What do you think? I'm happy to contribute either change if accepted.