[bug] wrong variable name in handleDecryptState

This commit is contained in:
Sosthene 2025-06-15 22:08:41 +02:00 committed by NicolasCantu
parent c0d402b234
commit 0d51f9d056

View File

@ -314,9 +314,9 @@ export async function registerAllListeners() {
}
try {
const { processId, stateId, token } = event.data;
const { processId, stateId, accessToken } = event.data;
if (!token || await !tokenService.validateToken(token, event.origin)) {
if (!accessToken || await !tokenService.validateToken(accessToken, event.origin)) {
throw new Error('Invalid or expired session token');
}