Fix csrf usage

This commit is contained in:
Adria Navarro 2024-02-21 10:57:49 +01:00
parent f7d5ccee3c
commit f68e7359c6
1 changed files with 2 additions and 1 deletions

View File

@ -515,11 +515,12 @@ export default class TestConfiguration {
}
async newTenant(appName = newid()): Promise<App> {
this.csrfToken = generator.hash()
this.tenantId = structures.tenant.id()
this.user = await this.globalUser()
this.userMetadataId = generateUserMetadataID(this.user._id)
this.csrfToken = generator.hash()
return this.createApp(appName)
}