trouble with organization creation in the afterEmailVerification callback
Hi everyone!
I'm trying create an organization automatically when a user verifies their email using the afterEmailVerification callback.
I have tried
headers: request.headers
and without header still no luck.
Im getting error
Failed to create organization: [Error [APIError]: ] {
status: 'UNAUTHORIZED',
body: undefined,
headers: {},
statusCode: 401
}0 Replies