code: func CurrentIdentity(c context.Context) identity.Identity {
  	if s := GetState(c); s != nil {
  		return s.User().Identity
  	}
  	return identity.AnonymousIdentity
  }
docs: // CurrentIdentity return identity of the current caller.
  //
  // Shortcut for GetState(c).User().Identity(). Returns AnonymousIdentity if
  // the context doesn't have State.