Skip to content

Commit

Permalink
fix test expirations
Browse files Browse the repository at this point in the history
  • Loading branch information
Josh Long committed Dec 19, 2023
1 parent 3a44f68 commit 44d0917
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ export async function main() {

const authMethod = {
authMethodType: AuthMethodType.EthWallet,
accessToken: JSON.stringify(LITCONFIG.CONTROLLER_AUTHSIG_2),
accessToken: JSON.stringify(globalThis.LitCI.CONTROLLER_AUTHSIG),
};

const pkpSignRes = await client?.executeJs({
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ export async function main() {

const sessionSigs = await client.getSessionSigs({
chain: 'ethereum',
expiration: new Date(Date.now() + 1000 * 60 * 60 * 24 * 7).toISOString(),
expiration: new Date(Date.now() + 60 * 60).toISOString(),
resourceAbilityRequests: resourceAbilities,
sessionKey: sessionKeyPair,
authNeededCallback,
Expand All @@ -52,8 +52,7 @@ export async function main() {
const pkpSignRes = await client?.pkpSign({
toSign: TO_SIGN,
pubKey: globalThis.LitCI.AUTH_METHOD_PKP_INFO.publicKey,
sessionSigs: sessionSigs,
// authMethods: [authMethod], // This is not working!
sessionSigs: sessionSigs
});

const pkpWallet = new PKPEthersWallet({
Expand Down
2 changes: 1 addition & 1 deletion e2e-nodejs/loader.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ const siweMessage = new siwe.SiweMessage({
version: '1',
chainId: 1,
nonce,
expirationTime: new Date(Date.now() + 1000 * 60 * 7).toISOString(),
expirationTime: new Date(Date.now() + (60_000 * 60)).toISOString(),
});
const messageToSign = siweMessage.prepareMessage();

Expand Down

0 comments on commit 44d0917

Please sign in to comment.