improved how the JS redirects after login or signup, extracted a method in the auth module
Merge branch 'development' into discover