func GenerateAuthTokenFromProfile()

in signer/msk_auth_token_provider.go [54:62]


func GenerateAuthTokenFromProfile(ctx context.Context, region string, awsProfile string) (string, int64, error) {
	credentials, err := loadCredentialsFromProfile(ctx, region, awsProfile)

	if err != nil {
		return "", 0, fmt.Errorf("failed to load credentials: %w", err)
	}

	return constructAuthToken(ctx, region, credentials)
}