Created
March 5, 2023 14:28
-
-
Save Ah-ae/53022dcf70f81b205eac77f2731f7fee to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { useContext } from 'react'; | |
import { userContext } from '../App.js'; | |
function useAccessToken() { | |
const { tokens } = useContext(userContext); | |
const accessToken = tokens && tokens.accessToken; | |
return accessToken; | |
} | |
export default useAccessToken; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment