NorthstarMasterServer/.husky
Barnaby 737c637c9f
Proper name spoofing protection (API change, no actual protection!) (#42)
* Working username fetching and db field
also sends the username in authenticate_incoming_player

* Update dev.env

* Switch from using puppeteer to just http

* Fix indentation

* fail open instead of closed

if i’m not mistaken, failing every time they auth will result in username being “null”, otherwise will remain as the previous value

* should make the default username in db be empty string

* Fix username fetch (added missing package)

* Format

* eslint pain

* eslint pain episode 2

* switch to async func over promise

* i removed by accident, makes it work again

* allow origin stuff to be disabled

* Add persistent sid cookie

* remove newline in sid.cookie

* automatic db upgrading using dbSchema.json

* Catch origin auth error

* Nicely do this instead

* Save non-authed state when failing
2022-03-24 21:22:12 +00:00
..
pre-commit Proper name spoofing protection (API change, no actual protection!) (#42) 2022-03-24 21:22:12 +00:00