feathersjs / feathers

The API and real-time application framework
https://feathersjs.com
MIT License
15.03k stars 748 forks source link

fix(authentication-local): Local Auth - Nested username & Password fields #3091

Closed eXigentCoder closed 1 year ago

eXigentCoder commented 1 year ago

In my application, I store all the authentication related information related to the user in a nested object. This nested subobject includes for example, the last login time, the password hash & salt, last login IP address etc and in my case it is called _auth. The problem is that currently the library only allows you to confirgure the username and password fields for authentication to only be on the top level of the entity. A test has been added for the nested field case and lint rules passing locally.

Summary

(If you have not already please refer to the contributing guideline as described here)

If so, please mention them to keep the conversations linked together.

eXigentCoder commented 1 year ago

Hey team, just wanted to check if you need anything further from me to get this merged in?

daffl commented 1 year ago

Apologies for the delay and thank you for the thorough pull request!