message: ODSP: Clear joinSessionCache on "server_disconnect" with 401/403
diff: @@ -17,6 +17,7 @@ import {
  IResolvedUrl,
  IDocumentStorageService,
  IDocumentServicePolicies,
  + DriverErrorType,
  } from "@fluidframework/driver-definitions";
  import { DeltaStreamConnectionForbiddenError, NonRetryableError } from "@fluidframework/driver-utils";
  import { IFacetCodes } from "@fluidframework/odsp-doclib-utils";
  @@ -281,6 +282,14 @@ export class OdspDocumentService implements IDocumentService {
  connection.on("op", (documentId, ops: ISequencedDocumentMessage[]) => {
  this.opsReceived(ops);
  });
  + // On disconnect with 401/403 error code, we can just clear the joinSession cache as we will again
  + // get the auth error on reconnecting and face latency.
  + connection.on("disconnect", (error: any) => {
  + if (typeof error === "object" && error !== null
  + && error.errorType === DriverErrorType.authorizationError) {
  + this.cache.sessionJoinCache.remove(this.joinSessionKey);
  + }
  + });
  this.currentConnection = connection;
  return connection;
  } catch (error) {
  