This PR aims to bring more versatility to authentication operations by allowing customization of the user lookup identifier.
Currently, the login process expects a request body with email and password JSON keys. This can now be configured to be password with any other attribute, e.g. username, as long as the identifier exists on the User database model.
This PR aims to bring more versatility to authentication operations by allowing customization of the user lookup identifier.
Currently, the login process expects a request body with
email
andpassword
JSON keys. This can now be configured to bepassword
with any other attribute, e.g.username
, as long as the identifier exists on theUser
database model.