battlecode / galaxy

MIT License
10 stars 3 forks source link

Add state for current user #665

Closed acrantel closed 1 year ago

acrantel commented 1 year ago

finally got around to pulling this into a separate pr from the login / register pages...

this pr adds a CurrentUserContext to hold the state of the current user. It also adds a PrivateRoute component which redirects people to the login page if they are not logged upon load.

n8kim1 commented 1 year ago

context omg amaze