Skip to content

Commit

Permalink
feat: upgrade logion-authenticator.
Browse files Browse the repository at this point in the history
  • Loading branch information
gdethier committed Nov 2, 2022
1 parent 98a4106 commit 6325c3a
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 10 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@logion/rest-api-core",
"version": "0.1.3",
"version": "0.1.4",
"repository": {
"type": "git",
"url": "git+https://github.com/logion-network/logion-rest-api-core.git"
Expand All @@ -26,7 +26,7 @@
"coverage": "nyc yarn run test"
},
"dependencies": {
"@logion/authenticator": "^0.2.2",
"@logion/authenticator": "^0.3.0",
"dinoloop": "^2.4.0",
"express": "^4.17.2",
"express-fileupload": "^1.2.1",
Expand Down
2 changes: 1 addition & 1 deletion src/AuthenticationController.ts
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ export class AuthenticationController extends ApiController {
const signature = authenticateRequest.signatures[address];
signatures[address] = {
signature: requireDefined(signature.signature),
signedOn: DateTime.fromISO(requireDefined(signature.signedOn), { setZone: true }),
signedOn: requireDefined(signature.signedOn),
type: requireDefined(signature.type),
};
}
Expand Down
4 changes: 2 additions & 2 deletions test/AuthenticationController.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -172,12 +172,12 @@ function mockDependenciesForAuth(container: Container, verifies: boolean, sessio
const signatures: Record<string, SessionSignature> = {
[ ALICE ]: {
signature: "SIG_ALICE",
signedOn: DateTime.now(),
signedOn: DateTime.now().toISO(),
type: "POLKADOT",
},
[ BOB ]: {
signature: "SIG_BOB",
signedOn: DateTime.now(),
signedOn: DateTime.now().toISO(),
type: "POLKADOT",
}
};
Expand Down
10 changes: 5 additions & 5 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -843,9 +843,9 @@ __metadata:
languageName: node
linkType: hard

"@logion/authenticator@npm:^0.2.2":
version: 0.2.2
resolution: "@logion/authenticator@npm:0.2.2"
"@logion/authenticator@npm:^0.3.0":
version: 0.3.0
resolution: "@logion/authenticator@npm:0.3.0"
dependencies:
"@ethersproject/transactions": ^5.6.2
"@logion/node-api": ^0.7.0
Expand All @@ -855,7 +855,7 @@ __metadata:
luxon: ^3.0.1
peer-id: ^0.16.0
web3-utils: ^1.7.4
checksum: 4b64efef58cd3bff2d2516b4ee4272746cb19b24c1dda8ea071c5ef53bc7691324c22c5da46d4bdd60ad3319943bca76a819da7fcb53d92c0b8a2f3456d55f22
checksum: c7023ec1eaedac17f7c39124e923ecc6223f23eeb21532b686f288e15f29d585b4c15a6dd8e2b01a60a081acf298321fe634f80f5ff1d4baba8511f16f488314
languageName: node
linkType: hard

Expand All @@ -878,7 +878,7 @@ __metadata:
resolution: "@logion/rest-api-core@workspace:."
dependencies:
"@istanbuljs/nyc-config-typescript": ^1.0.2
"@logion/authenticator": ^0.2.2
"@logion/authenticator": ^0.3.0
"@tsconfig/node16": ^1.0.3
"@types/express": ^4.17.13
"@types/express-fileupload": ^1.2.2
Expand Down

0 comments on commit 6325c3a

Please sign in to comment.