Update packages/server/src/middleware/currentapp.ts
Co-authored-by: Sam Rose <hello@samwho.dev>
This commit is contained in:
parent
a7410020c7
commit
c321c83916
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue