illuday
12/13/2017, 8:09 PMiamclaytonray
12/13/2017, 8:21 PMthis.props.loggedInUser
from whatever component you set the auth token and any of that component’s childrenilluday
12/13/2017, 8:30 PMiamclaytonray
12/13/2017, 8:31 PMthis.props.loggedInUser
. For example, you can store the user’s ID & token in localStorage
, protect those routes, and check on the client if the user ID matches the loggedInUser ID to authorize that user to make that requestiamclaytonray
12/13/2017, 8:32 PMthis.props
is a convention, but the idea is still the sameilluday
12/13/2017, 8:34 PMiamclaytonray
12/13/2017, 8:37 PM401
iamclaytonray
12/13/2017, 8:38 PMiamclaytonray
12/13/2017, 8:38 PMilluday
12/13/2017, 8:40 PMilluday
12/13/2017, 8:42 PMilluday
12/13/2017, 8:49 PM