mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2025-05-20 10:15:17 -04:00
Split methods getAuthTokenAndValidate
and createTokenForUser
Signed-off-by: Yannick Bungers <git@innay.de>
This commit is contained in:
parent
c835339633
commit
499f632d8d
5 changed files with 102 additions and 92 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue