Skip to content

Commit

Permalink
Don't use authn
Browse files Browse the repository at this point in the history
  • Loading branch information
pkoch committed Dec 17, 2024
1 parent 3fd2949 commit f1cae31
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/idos-sdk-server-dapp/src/idOS.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,15 @@ export class idOS {

static async init(
chainType: "EVM" | "NEAR",
authnPrivateKey: string,
authPrivateKey: string,
encryptionPrivateKey: string,
nodeUrl: string,
) {
let grantee: idOSGrantee;

switch (chainType) {
case "EVM": {
const signer = new ethers.Wallet(authnPrivateKey, new JsonRpcProvider(nodeUrl));
const signer = new ethers.Wallet(authPrivateKey, new JsonRpcProvider(nodeUrl));
grantee = await idOSGrantee.init({
chainType,
granteeSigner: signer,
Expand All @@ -27,7 +27,7 @@ export class idOS {
return new idOS(grantee);
}
case "NEAR": {
const signer = KeyPair.fromString(authnPrivateKey);
const signer = KeyPair.fromString(authPrivateKey);
grantee = await idOSGrantee.init({
chainType,
granteeSigner: signer,
Expand Down

0 comments on commit f1cae31

Please sign in to comment.