kinde-oss / kinde-auth-nextjs

Kinde NextJS SDK - authentication for server rendered apps
https://kinde.com/docs/developer-tools/nextjs-sdk/
MIT License
146 stars 18 forks source link

Feature request: Allow passing given_name and family_name in authUrlParams for custom signup process #187

Open tobiasrasmsn opened 1 month ago

tobiasrasmsn commented 1 month ago

Prerequisites

What is the problem you’re trying to solve?

Currently, there is no way to pass given_name and family_name as parameters in the authentication URL when using custom signup. This limitation makes it difficult to capture users' full names during the signup process.

<RegisterLink
    authUrlParams={{
        connection_id: process.env.NEXT_PUBLIC_KINDE_CONNECTION_PASSWORDLESS,
        login_hint: email,
    }}
>

What solution would you like to see?

The authUrlParams should be able to take given_name and family_name as parameters:

authUrlParams={{
    connection_id: process.env.NEXT_PUBLIC_KINDE_CONNECTION_PASSWORDLESS,
    login_hint: email,
    given_name: firstName,
    family_name: lastName,
}}

Adding this feature would make it easier to capture the users' real name during signup process without relying on saving it in your own database, or using the Kinde Update User later on.

I believe this feature would be beneficial for many users and would enhance the overall functionality of the Kinde library. Thank you for considering this request!

Additional information

No response

DanielRivers commented 1 month ago

Hi @tobiasrasmsn, this is currently a platform limitation.

We hear this request often and are investigating solution