Skip to content

Commit

Permalink
use hash of sigDigest instead of sigDigest for idenfy clientId
Browse files Browse the repository at this point in the history
  • Loading branch information
calebtuttle committed Aug 3, 2023
1 parent dc1380c commit 05ab4fc
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/services/idenfy/session.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import axios from "axios";
import { v4 as uuidV4 } from "uuid";
import { DailyVerificationCount } from "../../init.js";
import { logWithTimestamp, sendEmail } from "../../utils/utils.js";
import { hash } from "../../utils/utils.js";

async function createSession(req, res) {
try {
Expand Down Expand Up @@ -40,7 +41,7 @@ async function createSession(req, res) {

// Prepare request and create session
const reqBody = {
clientId: sigDigest,
clientId: hash(Buffer.from(sigDigest)).toString("hex"),
// Getting 'You are not allowed to use a custom callback url.' when specifying callbackUrl
// callbackUrl: "https://id-server.holonym.io/idenfy/webhook",
};
Expand Down

0 comments on commit 05ab4fc

Please sign in to comment.