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

outdated

This package provides an API for accessing Google Secret Manager using Dart. This package is useful for developers who want to securely store and retrieve secrets in their Dart applications using Goog [...]

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 json = File(path).readAsStringSync();
  await GoogleSecretManager.initViaServiceAccountJson(json);

  final key = 'adjust_token';
  final response = await GoogleSecretManager.instance.get(key);
  print('$key: ${response?.payload?.data}');
}
11
likes
0
points
173
downloads

Publisher

verified publishermiddelkamp.dev

Weekly Downloads

This package provides an API for accessing Google Secret Manager using Dart. This package is useful for developers who want to securely store and retrieve secrets in their Dart applications using Google Secret Manager.

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

googleapis, googleapis_auth, http

More

Packages that depend on google_secret_manager