From b3d10bdf3947d5ff8514bafc7cfda671e2670dab Mon Sep 17 00:00:00 2001 From: Alejandro Peralta Date: Tue, 3 Dec 2024 22:31:11 +0100 Subject: [PATCH] refactor(api): Use async version of the function that generates the backoffice session id --- api/src/modules/auth/authentication.service.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/src/modules/auth/authentication.service.ts b/api/src/modules/auth/authentication.service.ts index cc565951..8356038d 100644 --- a/api/src/modules/auth/authentication.service.ts +++ b/api/src/modules/auth/authentication.service.ts @@ -117,7 +117,7 @@ export class AuthenticationService { ), ); const backofficeSession: BackOfficeSession = { - sid: uid.sync(24), + sid: await uid(24), sess: { cookie: { secure: false,