I am reading some Json files from my firebase database and I am trying to obtain an ID token for the current user to be used in the header as follows:
var respo
If you are working with
import auth from '@react-native-firebase/auth';
then you can access the token with
var token = await response.user.getIdToken();
console.log('TokenID', token);
and after that, you can use it into
var response = await httpClient.get(url,headers: {'Authorization':"Bearer $token"});