unpub_auth 0.0.1 copy "unpub_auth: ^0.0.1" to clipboard
unpub_auth: ^0.0.1 copied to clipboard

A cli used to refresh googleapis token.

unpub_auth #

Only for Dart 2.15 and later.

Since Dart 2.15:

  1. The accessToken is only sent to https://pub.dev and https://pub.dartlang.org. See dart-lang/pub #3007 for details.
  2. Since Dart 2.15, the third-party pub's token is stored at /Users/username/Library/Application Support/dart/pub-tokens.json (macOS)

This cli app reads the token from the new path of official pub credential /Users/username/Library/Application Support/dart/pub-credentials.json (macOS). Then refresh and save it. So Dart can continue to read the accessToken from pub-tokens.json.

Usage #

Please call dart pub login first before you run the unpub_auth if you never login in 'terminal'.

Install and run #

dart pub global activate unpub_auth # activate the cli app
unpub_auth | dart pub token add <self-hosted-pub-server> # run it for refreshing and save the token

Uninstall #

dart pub global deactivate unpub_auth # deactivate the cli app

Develop and debug locally #

dart pub global activate --source path ./  # activate the cli app
unpub_auth  # run it
8
likes
130
points
0
downloads

Publisher

verified publisheropensource.bytedance.com

Weekly Downloads

A cli used to refresh googleapis token.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

collection, googleapis_auth, http, path

More

Packages that depend on unpub_auth