issues
search
MLH-Fellowship
/
SocioMark
A social media platform that lets you upload images and secures them by embedding a personalised hash.
https://sociomark.netlify.app
MIT License
16
stars
8
forks
source link
Set Current User details globally
#60
Closed
bodhisha
closed
3 years ago
bodhisha
commented
3 years ago
Resolves #59
Changes
Add get_current_user api
Add a global state for current_user in frontend with Context API
Now if we use
const user = useContext(AuthContext);
in any of the front end components, current user details is fetched.
Resolves #59
Changes
const user = useContext(AuthContext);
in any of the front end components, current user details is fetched.