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
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?
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:
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?
Here is my mutation:
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?