feat: Add event information to verifyUserEmails, preventLoginWithUnverifiedEmail to identify invoking signup / login action and auth provider (#9963)
This commit is contained in:
@@ -158,6 +158,11 @@ function mapperFor(elt, t) {
|
||||
return wrap(t.identifier('booleanParser'));
|
||||
} else if (t.isObjectTypeAnnotation(elt)) {
|
||||
return wrap(t.identifier('objectParser'));
|
||||
} else if (t.isUnionTypeAnnotation(elt)) {
|
||||
const unionTypes = elt.typeAnnotation?.types || elt.types;
|
||||
if (unionTypes?.some(type => t.isBooleanTypeAnnotation(type)) && unionTypes?.some(type => t.isFunctionTypeAnnotation(type))) {
|
||||
return wrap(t.identifier('booleanOrFunctionParser'));
|
||||
}
|
||||
} else if (t.isGenericTypeAnnotation(elt)) {
|
||||
const type = elt.typeAnnotation.id.name;
|
||||
if (type == 'Adapter') {
|
||||
|
||||
Reference in New Issue
Block a user