I am using a helper function to get the token from Asyncstorage and add it to the axios header but instead it gives a promise. My function is like this:
const getToken = async () => {
const token = await AsyncStorage.getItem("token")
return token
};