Skip to content

Allow passing first_name and last_name in the auth url params when using custom signup #52

@raodevendrasingh

Description

@raodevendrasingh

Prerequisites

What is the problem you’re trying to solve?

Currently there's no way to assign first_name and last_name to a new user during custom signup process.

register({
	authUrlParams: {
		connection_id: import.meta.env.VITE_KINDE_EMAIL_PASSWORD_CONNECTION_ID,
		login_hint: email,
	},
});

The created user object only contains the id and email,

{
    "id": "kp_userid",
    "email": "name@email.com",
    "family_name": undefined,
    "given_name": undefined,
    "picture": undefined,
}

What solution would you like to see?

the authUrlParams should allow passing the first_name and last_name as parameters.

register({
	authUrlParams: {
		connection_id: import.meta.env.VITE_KINDE_EMAIL_PASSWORD_CONNECTION_ID,
		login_hint: email,
		first_name: firstName,
		last_name: lastName
	},
});

After custom signup, the user object should look like this:

{
    "id": "kp_userid",
    "email": "name@email.com",
    "family_name": firstName,
    "given_name": lastName,
    "picture": undefined,
}

Additional information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions