func CreateAndSetAuthToken() error {
	// Noop if token is already set
	if token != "" {
		return nil
	}

	// token is only set once, no need to mutex protect
	var err error
	token, err = security.CreateOrFetchToken()
	return err
}
// CreateAndSetAuthToken creates and sets the authorization token
// Requires that the config has been set up before calling
CreateAndSetAuthToken creates and sets the authorization token
Requires that the config has been set up before calling
// CreateAndSetAuthToken creates and sets the authorization token // Requires that the config has been set up before calling
func CreateAndSetAuthToken() error {
	if token != "" {
		return nil
	}
	var err error
	token, err = security.CreateOrFetchToken()
	return err
}
func CreateAndSetAuthToken ( ) error { if token != " " { return nil } var err error token , err = security . CreateOrFetchToken ( ) return err }
CreateAndSetAuthToken creates and sets the authorization token
Requires that the config has been set up before calling
CreateAndSetAuthToken creates and sets the authorization token Requires that the config has been set up before calling
// Noop if token is already set // token is only set once, no need to mutex protect