Wrote CSS for a chatbox

This commit is contained in:
2021-03-17 03:44:38 +11:00
parent e288a43519
commit 8561219542
7 changed files with 783 additions and 16 deletions
@@ -77,6 +77,11 @@ const TokenProvider = props => {
});
};
//access the refreshed token via callback
const tokenCallback = async (cb) => {
//TODO: tokenCallback
};
return (
<TokenContext.Provider value={{ accessToken, refreshToken, setAccessToken, setRefreshToken, tokenFetch, getPayload: () => decode(accessToken) }}>
{props.children}