Description
Effectively register a completely new user. After successful registeration, user will be returned with a token field being a valid JWT token. This saves a roundtrip for new users, you don't need to login after registering.
Note that in order to register, you have to set tos_agree to true, which implies you agree with Lana TOS.
While we don't enforce various weird rules on passwords. Please, provide a reasonably secure password or better enable 2FA (TODO: link to 2FA) shortly after creating a user.
Topic: Users
Arguments
data: [UserCreate!]!
Main argument for mutations.
Unique shop identifier. See also: Unique Identifiers
Example: "sh_EQzGqWoY"
Data Argument Fields
Raw content with user's bio
Example: "{}"
Valid when: bio_raw_content's length doesn't exceed 100000 characters
Display name of the user (customers will see it)
Example: "Jane S."
Valid when: display_name's length doesn't exceed 250 characters
Email of the user
Example: "no+spam@mail.com"
Valid when: email is not empty
Valid when: email's length doesn't exceed 250 characters
Name of the user
Example: "Jane Smith"
Valid when: name's length doesn't exceed 250 characters
OAuth2 authorization code provided by the provider
oauth_provider: OAuth2Provider
OAuth2 provider used for registering this account
The user's password
Example: "34hb5kj3h45k3"
Name of the time zone the user is in
Example: "(GMT-05:00) Eastern Time"
Valid when: timezone's length doesn't exceed 50 characters
Timezone hint. When provided it overrides timezone field, but only if it's correct. If it's incorrect, the value is ignored.
Example: "(GMT-05:00) Eastern Time"
Valid when: timezone_hint's length doesn't exceed 50 characters
It has to be set to true and signifies that you agree with Lana TOS
Example: true
Result
[User!]
Preview (typescript)
Loading module