Split methods getAuthTokenAndValidate and createTokenForUser

Signed-off-by: Yannick Bungers <git@innay.de>
This commit is contained in:
Yannick Bungers 2022-09-11 21:05:04 +02:00 committed by David Mehren
parent c835339633
commit 499f632d8d
5 changed files with 102 additions and 92 deletions

View file

@ -343,7 +343,7 @@ export class TestSetupBuilder {
// create auth tokens
this.testSetup.authTokens = await Promise.all(
this.testSetup.users.map(async (user) => {
return await this.testSetup.authService.createTokenForUser(
return await this.testSetup.authService.addToken(
user,
'test',
new Date().getTime() + 60 * 60 * 1000,