···785786 return nil
787 case env.RepoHandle != nil:
00788789 // TODO: ignoring the data in the message and just going out to the DID doc
790 act, err := bgs.createExternalUser(ctx, env.RepoHandle.Did)
···785786 return nil
787 case env.RepoHandle != nil:
788+ // Flush any cached DID documents for this user
789+ bgs.didr.FlushCacheFor(env.RepoHandle.Did)
790791 // TODO: ignoring the data in the message and just going out to the DID doc
792 act, err := bgs.createExternalUser(ctx, env.RepoHandle.Did)