You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: export_test.go
    path of file: ./repos/juju/apiserver/stateauthenticator
    
    the code of the file until where you have to start completion: // Copyright 2014-2018 Canonical Ltd. All rights reserved.
// Licensed under the AGPLv3, see LICENCE file for details.

package stateauthenticator

import (
	"github.com/go-macaroon-bakery/macaroon-bakery/v3/bakery/ident
    
func ServerBakeryExpiresImmediately(a *Authenticator, identClient identchecker.IdentityClient) (*identchecker.Bakery, error) {
	auth, err := newExternalMacaroonAuth(a.authContext.st, a.authContext.clock, 0, identClient)
	if err != nil {
		return nil, err
	}
	return auth.Bakery, nil
}