dev docs: clarify internal and external token helpers (#13014)

* dev docs: clarify internal and external token helpers

* Add docs for DefaultTokenHelper
This commit is contained in:
mickael-hc
2022-08-16 16:48:24 -04:00
committed by GitHub
parent fc2b4e72ee
commit 43a5fcc9f4
3 changed files with 5 additions and 0 deletions

View File

@@ -14,6 +14,7 @@ import (
)
// DefaultTokenHelper returns the token helper that is configured for Vault.
// This helper should only be used for non-server CLI commands.
func DefaultTokenHelper() (token.TokenHelper, error) {
return config.DefaultTokenHelper()
}