Skip to content
This repository has been archived by the owner on Aug 29, 2024. It is now read-only.

Commit

Permalink
fix: wrong expiration
Browse files Browse the repository at this point in the history
  • Loading branch information
Mritunjay Kumar authored and Mritunjay Kumar committed Aug 29, 2023
1 parent 97f0f41 commit d891742
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions common-libs/did-auth-lib/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# release 3.0.0 (2023-08-29)
* added expiration in Response Token Options
# release 2.9.0 (2023-03-14)
* add tenant token
# release 2.8.0 (2023-03-08)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -294,7 +294,7 @@ describe('AffinidiDidAuthService', () => {

const didAuthRequestToken = await serverService.createDidAuthRequestToken(holderDid)

const options: CreateResponseTokenOptions = undefined
const options: CreateResponseTokenOptions = { exp: 42 }

const didAuthResponseToken = await clientService.createDidAuthResponseToken(didAuthRequestToken, options)

Expand All @@ -306,7 +306,7 @@ describe('AffinidiDidAuthService', () => {
}

expect(invalidExpirationError).to.be.not.undefined
expect(invalidExpirationError.message).to.be.equal('Token expired or invalid expiration')
expect(invalidExpirationError.message).to.be.equal('Token expired')
nock.cleanAll()
})
})

0 comments on commit d891742

Please sign in to comment.