mirror of
https://github.com/zitadel/zitadel.git
synced 2025-12-15 08:53:33 +00:00
service url context
This commit is contained in:
@@ -23,14 +23,14 @@ export type RegisterUserResponse = {
|
||||
export async function inviteUser(command: InviteUserCommand) {
|
||||
const _headers = await headers();
|
||||
const instanceUrl = getApiUrlOfHeaders(_headers);
|
||||
const host = instanceUrl;
|
||||
const host = _headers.get("host");
|
||||
|
||||
if (!host) {
|
||||
return { error: "Could not get domain" };
|
||||
}
|
||||
|
||||
const human = await addHumanUser({
|
||||
host,
|
||||
host: instanceUrl,
|
||||
email: command.email,
|
||||
firstName: command.firstName,
|
||||
lastName: command.lastName,
|
||||
|
||||
Reference in New Issue
Block a user