setup a context API with custom hook to allow token and other important useful variables to be stored in states and wrap that context provider at correct place in application.
Also add a expiration timestamp to let that token expire after a provided time, add that expiry check logic too
setup a context API with custom hook to allow token and other important useful variables to be stored in states and wrap that context provider at correct place in application. Also add a expiration timestamp to let that token expire after a provided time, add that expiry check logic too