1
0
Fork 0
mirror of synced 2024-07-07 15:25:52 +12:00

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

View file

@ -72,7 +72,7 @@ export default async (ctx: UserCtx, next: any) => {
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
// this avoids apps making calls to say the worker which are cross tenant,
// we simply remove the authentication