Skip to content

Frontend API create account with custom content field #220

Answered by logeshswell
boostvolt asked this question in Help
Discussion options

You must be logged in to vote

@boostvolt Yes, you're right!
AccountSnake isn't accepting content field while productSnake accepts it. So, we need to move content field inside BaseModel, so that you could create/update content fields in any of the interfaces.

Would you be comfortable to create a PR for this change?

Secondly, you should be creating an account as follows since you're using content field.

await swell.account.create({
  email: "${email}",
  password: '${password},
  content: {
    custom_field: "testing"
  }
});

Replies: 1 comment 6 replies

Comment options

You must be logged in to vote
6 replies
@boostvolt
Comment options

@sags95
Comment options

@boostvolt
Comment options

@logeshswell
Comment options

Answer selected by logeshswell
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
enhancement New feature or request swell-js
3 participants