Commit 499f075a authored by Hidde-Jan Jongsma's avatar Hidde-Jan Jongsma

Update utils.controller.ts

parent dd2a3ea7
......@@ -12,8 +12,9 @@ export class UtilsController {
async generateJwt(
@Param('organizationId') organizationId: string,
@Body() body: object,
@Body() body: string | object,
) {
// TODO: move into utilsService
const organization = await this.organizationsService.find(organizationId);
const jwt = this.utilsService.createSignedJwt(body, organization);
return jwt;
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment