Skip to content

Commit

Permalink
fix: remove sub from request object
Browse files Browse the repository at this point in the history
  • Loading branch information
panva committed Apr 28, 2022
1 parent 38edd37 commit 41d49fa
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 2 deletions.
1 change: 0 additions & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1274,7 +1274,6 @@ export async function issueRequestObject(
iat: now,
nbf: now,
iss: client.client_id,
sub: client.client_id,
}

let resource: string[]
Expand Down
1 change: 0 additions & 1 deletion test/request_object.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@ test('issueRequestObject()', async (t) => {
t.is(typeof jti, 'string')
t.deepEqual(claims, {
iss: client.client_id,
sub: client.client_id,
aud: issuer.issuer,
response_type: 'code',
resource: 'urn:example:resource',
Expand Down

0 comments on commit 41d49fa

Please sign in to comment.