google_secret_manager 1.1.0 copy "google_secret_manager: ^1.1.0" to clipboard
google_secret_manager: ^1.1.0 copied to clipboard

A library for accessing the Secret Manager API.

example/google_secret_manager_example.dart

import 'dart:io';

import 'package:google_secret_manager/google_secret_manager.dart';

Future<void> main() async {
  final path = '${Directory.current.path}/gcm-service-account.json';
  final file = File(path);
  final json = await file.readAsString();
  await GoogleSecretManagerInitializer.initViaServiceAccountJson(json);

  final key = 'adjust_token';
  final response = await GoogleSecretManager.instance.get(key);
  print('$key: ${response?.payload?.data}');
}
10
likes
120
pub points
59%
popularity

Publisher

verified publishermiddelkamp.dev

A library for accessing the Secret Manager API.

Repository (GitHub)
View/report issues

Documentation

API reference

License

BSD-3-Clause (LICENSE)

Dependencies

googleapis, googleapis_auth, http

More

Packages that depend on google_secret_manager