Keerat666 / Lumix

An open source crowd developed React UI Library
https://lumix.onrender.com
Apache License 2.0
8 stars 17 forks source link

setup authentication context API to store useful tokens/variables with expiration timestamp #47

Open vkushal28 opened 1 year ago

vkushal28 commented 1 year ago

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