I'm trying to replicate custom attributes on SignUp in an iOS app using Swift. I get the following:
An error occurred while registering a user AuthError: Attributes did not conform to the schema: custom:groupName: Attribute does not exist in the schema.
This is the JavaScript code:
const { user } = await Auth.signUp({
username,
password,
attributes: {
email, // optional
phone_number, // optional - E.164 number convention
// other custom attributes
},
autoSignIn: { // optional - enables auto sign in after user is confirmed
enabled: true,
}