mirror of
https://github.com/xyzeva/k-id-age-verifier.git
synced 2026-06-07 07:23:52 +02:00
fix: dont hardcode subject, allowing other platforms then discord
This commit is contained in:
@@ -405,7 +405,7 @@ async function verify(qrCodeUrlStr: string) {
|
||||
modality: 'image',
|
||||
unverifiedPayload: {
|
||||
iss: 'https://api.privately.swiss',
|
||||
sub: '1024',
|
||||
sub: jwtPayload.sub,
|
||||
aud: 'https://api.k-id.com',
|
||||
exp: jwtPayload.exp,
|
||||
nbf: jwtPayload.nbf,
|
||||
@@ -499,7 +499,7 @@ async function verify(qrCodeUrlStr: string) {
|
||||
},
|
||||
screenAttackMeasure: 0,
|
||||
screenAttackBoundingBox: {},
|
||||
subclient: '1024',
|
||||
subclient: jwtPayload.sub,
|
||||
verificationID: jwtPayload.vid,
|
||||
version: 'v1.10.22',
|
||||
sdk_path: './face-capture-v1.10.22.js',
|
||||
|
||||
@@ -422,7 +422,7 @@ async function verify(
|
||||
modality: 'image',
|
||||
unverifiedPayload: {
|
||||
iss: 'https://api.privately.swiss',
|
||||
sub: '1024',
|
||||
sub: jwtPayload.sub,
|
||||
aud: 'https://api.k-id.com',
|
||||
exp: jwtPayload.exp,
|
||||
nbf: jwtPayload.nbf,
|
||||
@@ -516,7 +516,7 @@ async function verify(
|
||||
},
|
||||
screenAttackMeasure: 0,
|
||||
screenAttackBoundingBox: {},
|
||||
subclient: '1024',
|
||||
subclient: jwtPayload.sub,
|
||||
verificationID: jwtPayload.vid,
|
||||
version: 'v1.10.22',
|
||||
sdk_path: './face-capture-v1.10.22.js',
|
||||
|
||||
Reference in New Issue
Block a user