Stun3R / strapi-sdk-js

📦 Javascript SDK for your Strapi API
https://strapi-sdk-js.netlify.app
MIT License
143 stars 27 forks source link

custom property for register #198

Open jongbonga opened 9 months ago

jongbonga commented 9 months ago

Feature request

Summary

Currently (as of strapi v4.20.3) it is possible to pass custom properties like name, surname, etc. on register, but the SDK StrapiRegistrationData type only allows email, password & surname.

Why is it needed?

I want to register a user with extra parameters like their names & surname

Suggested solution(s)

allow extra parameters on the of the required email, password & surname to the register methods.

register({ email: '', password: '', username: '', extra: Record })

Stun3R commented 3 days ago

Hey 👋🏼 I will work on it in the following week and an update should be published in less than 2 weeks