koole / react-sanctum

Easily hook up your React app to Laravel Sanctum and Laravel Fortify
MIT License
152 stars 26 forks source link

ConfigProps export, Support for usernameKey and Hook generic support. #151

Closed WildEgo closed 2 years ago

WildEgo commented 2 years ago

The title rather explains it, it now exports the ConfigProps so they can be imported as a type for config reasons, and added support for a usernameKey that defaults to email if empty for logins that use something different than email.

koole commented 2 years ago

Thanks for the addition! This feature is now available if you upgrade to v2.2.0!