Update packages/server/src/middleware/currentapp.ts

Co-authored-by: Sam Rose <hello@samwho.dev>
This commit is contained in:
Michael Drury 2023-12-04 17:10:19 +00:00 committed by GitHub
parent a7410020c7
commit c321c83916
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -72,7 +72,7 @@ export default async (ctx: UserCtx, next: any) => {
const userId = ctx.user ? generateUserMetadataID(ctx.user._id!) : undefined const userId = ctx.user ? generateUserMetadataID(ctx.user._id!) : undefined
// if the user not in the right tenant then make to wipe their cookie // if the user is not in the right tenant then make sure to wipe their cookie
// also cleanse any information about them that has been allocated // also cleanse any information about them that has been allocated
// this avoids apps making calls to say the worker which are cross tenant, // this avoids apps making calls to say the worker which are cross tenant,
// we simply remove the authentication // we simply remove the authentication