Sign Up Email Confirmation

Hello!

Select your workspace then click on ā€œAPI Explorerā€. From there, drop in your query and you can test and debug it to solve this problem (use Explorer and Documentation Explorer).
Besides on Wednesday weā€™ll upload the useful examples on GitHub. Please wait and itā€™ll definitely help you,

Lada Kokotova | Technical Support Engineer

I followed step 1 diligently and I ran into some problems
First, the 8Base resolver cannot be used by unregistered users and I had to use an API key. Calling the waitlistUserAdd endpoint/function returns: ā€œYou donā€™t have permission to perform this operationā€

Secondly, After using an API key (Not sure if thatā€™s recommended), this string of code failed

sgMail.setApiKey(process.env.REACT_APP_SEND_GRID);

returning:

Cannot read property ā€˜setApiKeyā€™ of undefined:

I will wait for your example that you posted would take 1-2 weeks to fast track authentication set up

EDIT:
Nevermind. just had to use const sgMail = require(ā€™@sendgrid/mailā€™); instead of import

Thank you Lada. We will try it out after Wednesday, and update you on progress. Can you provide us with direct link to GitHub when itā€™s released?

Anytime!
When itā€™ll be ready Iā€™ll definitely send you the link. It doesnā€™t exist now.

Lada Kokotova | Technical Support Engineer

1 - If you see this error You donā€™t have permission to perform this operation you need to set up your permissions for roles
https://docs.8base.com/docs/8base-console/roles-and-permissions/#apps
2 - Check workspace environment variables, did you add this one?
https://docs.8base.com/docs/development-tools/dev-env/runtime-environment/#environment-variables

Check the edit I solved it :slight_smile:

Follow up question here Logging in with a token instead of a username and password

image
Hello, firstName and lastName are null in such example, how to correct put the fields?

Hello!

Iā€™ll answer you as soon as possible.

Lada Kokotova | Technical Support Engineer

Hello, how to correct implement it on auth0 actions? Because in the topic was sent example for userCreate, please provide for userSignUpWithPassword.

Hey SeeFirst. Where is this event.user data coming from? Iā€™m not sure here where the user is being authenticated, and therefore unable to determine whether that data should be available.

Also, are you using the userCreate mutation or a userSignupWithToken or userSignupWithPassword?

Thanks

I have used it from your guide - Sign Up Email Confirmation, I want to add more fields not only email, how can I do it?
image

So a userCreate mutation only created the user record, it doesnā€™t have the information required to tie that user to any Authentication Profile or auth provider. Thus no email is sent.

Try using the userSignupWithPassword mutation. It will allow you to specify the authProfileId.

Hello, email is sent, I have another issue, above you threw an example of userCreate mutation, but with this mutation only the email field is added to db, how to create this mutation so that I can add firstName, lastName, work_phone, company? May be I need to use userSignupWithPassword mutation, if yes can you provide an example of mutation?

Hi Lada. Do you have a direct link for useful examples on git hub?

@vyacheslav.solomin could you send a link, please?

Lada Kokotova | Technical Support Engineer

Hey @SeeFirst

I just ran this mutation:

mutation {
  userCreate(data: {
    email: "john@james.com"
    firstName: "John"
    lastName: "James"
  }) {
    id
    email
    firstName
    lastName
  }
}

and got back the response:

So the mutation is working. Are you sure that youā€™re passing it the right data or fields?

Here is sample of my request:
image
Is it correct? Cusom action in auth0.

In my example email is sent to db but firstName, lastName and other fields are not sent, what to do?

Can you please share:

  1. The actual Mutation string for your CREATE_USER_MUTATION variable.
  2. Confirm that event.user.given_name is actually accessing the intended value.

Here is my mutation:
image
I donā€™t really know if event.user.given_name is actually accessing the intended value, can you please share how can I check it?