UTSCCSCC01 / project-ez4-0

project-ez4-0 created by GitHub Classroom
0 stars 0 forks source link

[Chore] Auth update #29

Closed NielXu closed 3 years ago

NielXu commented 3 years ago

PR Summary

Protect routes

A user must login before accessing the routes mentioned above and their userId will be stored in localStorage. Get it by following:

const userId = localStorage.getItem("userId");

@XianghuDai @archie-lhd @JialeYuLeo @ZhenyeZhu