Hi, i was trying to create a new user with password but it always gives me the same error
what im i doing wrong, is there any way to fix it?
Hi, i was trying to create a new user with password but it always gives me the same error
Hello
this error occurs due to the fact that the request is sent from 8base api explorer, and accordingly the request is sent from the current user (with the authorization token of the current user)
try to call this mutation from postman (https://www.postman.com/) or altair (https://altair.sirmuel.design/)
do you pass authorization
header? if so try without
try to remove the token
Without the token i cant make mutations or querys
why? what kind of error?
The token gives me the permissions to make mutations and querys from the outside
do you want to call this mutation(userSingUpWithPassword) in a custom resolver, right?
and this resolver will be called for an authorized user?
or will it be used in some other way?
yes, that’s how it has to work
In this case im trying to make this mutation on insomnia with a token that 8base provides me
but i cant create a user because of that error
you can try override headers at custom resolver
const someResolver = (event, ctx) => {
// some code before ...
const res = await ctx.api.gqlRequest(
CREATE_USER_MUTATION,
data, // vars for userSingUpWithPassword mutations
{
checkPermissions: false,
headers: { authorization: null },
}
);
// some code after ...
}
at the moment there is such a limitation that this mutation (userSingUpWithPassword) must be called without an authorization token
yes, you can see it in the pics