authenticate method

Future<void> authenticate(
  1. Map<String, String> metadata,
  2. String uri
)

Implementation

Future<void> authenticate(Map<String, String> metadata, String uri) async {
  var idToken = await auth.tokenProvider.idToken;
  metadata['authorization'] = 'Bearer $idToken';
}