Change data by resCheckTokenAuth

This commit is contained in:
Gregoire Parant 2021-11-15 16:34:23 +01:00
parent 4e042389c5
commit 20164417fb

View File

@ -69,7 +69,7 @@ export class AuthenticateController extends BaseController {
const resCheckTokenAuth = await openIDClient.checkTokenAuth(authTokenData.accessToken); const resCheckTokenAuth = await openIDClient.checkTokenAuth(authTokenData.accessToken);
res.writeStatus("200"); res.writeStatus("200");
this.addCorsHeaders(res); this.addCorsHeaders(res);
return res.end(JSON.stringify({ ...data, authToken: token })); return res.end(JSON.stringify({ ...resCheckTokenAuth, authToken: token }));
} catch (err) { } catch (err) {
console.info("User was not connected", err); console.info("User was not connected", err);
} }