Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@0xsequence/auth

Package Overview
Dependencies
Maintainers
0
Versions
535
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@0xsequence/auth - npm Package Compare versions

Comparing version 2.2.1 to 2.2.2

17

dist/0xsequence-auth.cjs.dev.js

@@ -33,2 +33,3 @@ 'use strict';

this.indexerClients = new Map();
this.indexerGateway = void 0;
this.projectAccessKey = void 0;

@@ -214,2 +215,9 @@ this.projectAccessKey = projectAccessKey;

}
async getIndexerGateway(tryAuth = true) {
if (!this.indexerGateway) {
const jwtAuth = (await this.getJWT(tryAuth)).token;
this.indexerGateway = new indexer.SequenceIndexerGateway(this.settings.sequenceMetadataUrl, undefined, jwtAuth);
}
return this.indexerGateway;
}
getProofString(key) {

@@ -576,3 +584,4 @@ // check if we already have or are waiting for a proof string

onMigration,
orchestrator
orchestrator,
projectAccessKey
} = args;

@@ -601,3 +610,4 @@ const {

orchestrator,
jwt: jwtExpired ? undefined : (_dump$jwt2 = dump.jwt) == null ? void 0 : _dump$jwt2.token
jwt: jwtExpired ? undefined : (_dump$jwt2 = dump.jwt) == null ? void 0 : _dump$jwt2.token,
projectAccessKey
});

@@ -628,3 +638,4 @@

orchestrator,
jwt: jwtExpired ? undefined : (_dump$jwt4 = dump.jwt) == null ? void 0 : _dump$jwt4.token
jwt: jwtExpired ? undefined : (_dump$jwt4 = dump.jwt) == null ? void 0 : _dump$jwt4.token,
projectAccessKey
});

@@ -631,0 +642,0 @@ } else {

@@ -33,2 +33,3 @@ 'use strict';

this.indexerClients = new Map();
this.indexerGateway = void 0;
this.projectAccessKey = void 0;

@@ -214,2 +215,9 @@ this.projectAccessKey = projectAccessKey;

}
async getIndexerGateway(tryAuth = true) {
if (!this.indexerGateway) {
const jwtAuth = (await this.getJWT(tryAuth)).token;
this.indexerGateway = new indexer.SequenceIndexerGateway(this.settings.sequenceMetadataUrl, undefined, jwtAuth);
}
return this.indexerGateway;
}
getProofString(key) {

@@ -576,3 +584,4 @@ // check if we already have or are waiting for a proof string

onMigration,
orchestrator
orchestrator,
projectAccessKey
} = args;

@@ -601,3 +610,4 @@ const {

orchestrator,
jwt: jwtExpired ? undefined : (_dump$jwt2 = dump.jwt) == null ? void 0 : _dump$jwt2.token
jwt: jwtExpired ? undefined : (_dump$jwt2 = dump.jwt) == null ? void 0 : _dump$jwt2.token,
projectAccessKey
});

@@ -628,3 +638,4 @@

orchestrator,
jwt: jwtExpired ? undefined : (_dump$jwt4 = dump.jwt) == null ? void 0 : _dump$jwt4.token
jwt: jwtExpired ? undefined : (_dump$jwt4 = dump.jwt) == null ? void 0 : _dump$jwt4.token,
projectAccessKey
});

@@ -631,0 +642,0 @@ } else {

19

dist/0xsequence-auth.esm.js

@@ -6,3 +6,3 @@ import { ethers } from 'ethers';

import { SequenceAPIClient } from '@0xsequence/api';
import { SequenceIndexer } from '@0xsequence/indexer';
import { SequenceIndexer, SequenceIndexerGateway } from '@0xsequence/indexer';
import { SequenceMetadata } from '@0xsequence/metadata';

@@ -30,2 +30,3 @@ import { getFetchRequest, jwtDecodeClaims } from '@0xsequence/utils';

this.indexerClients = new Map();
this.indexerGateway = void 0;
this.projectAccessKey = void 0;

@@ -211,2 +212,9 @@ this.projectAccessKey = projectAccessKey;

}
async getIndexerGateway(tryAuth = true) {
if (!this.indexerGateway) {
const jwtAuth = (await this.getJWT(tryAuth)).token;
this.indexerGateway = new SequenceIndexerGateway(this.settings.sequenceMetadataUrl, undefined, jwtAuth);
}
return this.indexerGateway;
}
getProofString(key) {

@@ -573,3 +581,4 @@ // check if we already have or are waiting for a proof string

onMigration,
orchestrator
orchestrator,
projectAccessKey
} = args;

@@ -598,3 +607,4 @@ const {

orchestrator,
jwt: jwtExpired ? undefined : (_dump$jwt2 = dump.jwt) == null ? void 0 : _dump$jwt2.token
jwt: jwtExpired ? undefined : (_dump$jwt2 = dump.jwt) == null ? void 0 : _dump$jwt2.token,
projectAccessKey
});

@@ -625,3 +635,4 @@

orchestrator,
jwt: jwtExpired ? undefined : (_dump$jwt4 = dump.jwt) == null ? void 0 : _dump$jwt4.token
jwt: jwtExpired ? undefined : (_dump$jwt4 = dump.jwt) == null ? void 0 : _dump$jwt4.token,
projectAccessKey
});

@@ -628,0 +639,0 @@ } else {

import { Account } from '@0xsequence/account';
import { SequenceAPIClient } from '@0xsequence/api';
import { Indexer } from '@0xsequence/indexer';
import { Indexer, SequenceIndexerGateway } from '@0xsequence/indexer';
import { SequenceMetadata } from '@0xsequence/metadata';

@@ -16,2 +16,3 @@ import { ChainIdLike } from '@0xsequence/network';

sequenceMetadataUrl: string;
sequenceIndexerGatewayUrl: string;
};

@@ -45,2 +46,3 @@ export type SessionJWT = {

private indexerClients;
private indexerGateway;
private projectAccessKey?;

@@ -65,3 +67,4 @@ constructor(account: Account, settings: ServicesSettings, status?: {

getIndexerClient(chainId: ChainIdLike, tryAuth?: boolean): Promise<Indexer>;
getIndexerGateway(tryAuth?: boolean): Promise<SequenceIndexerGateway>;
private getProofString;
}

@@ -66,3 +66,4 @@ import { NetworkConfig } from '@0xsequence/network';

onMigration?: (account: Account) => Promise<boolean>;
projectAccessKey?: string;
}): Promise<Session>;
}
{
"name": "@0xsequence/auth",
"version": "2.2.1",
"version": "2.2.2",
"description": "auth sub-package for Sequence",

@@ -13,14 +13,14 @@ "repository": "https://github.com/0xsequence/sequence.js/tree/master/packages/auth",

"@0xsequence/ethauth": "^1.0.0",
"@0xsequence/abi": "2.2.1",
"@0xsequence/account": "2.2.1",
"@0xsequence/core": "2.2.1",
"@0xsequence/indexer": "2.2.1",
"@0xsequence/metadata": "2.2.1",
"@0xsequence/sessions": "2.2.1",
"@0xsequence/signhub": "2.2.1",
"@0xsequence/network": "2.2.1",
"@0xsequence/wallet": "2.2.1",
"@0xsequence/api": "2.2.1",
"@0xsequence/utils": "2.2.1",
"@0xsequence/migration": "2.2.1"
"@0xsequence/abi": "2.2.2",
"@0xsequence/account": "2.2.2",
"@0xsequence/api": "2.2.2",
"@0xsequence/indexer": "2.2.2",
"@0xsequence/core": "2.2.2",
"@0xsequence/metadata": "2.2.2",
"@0xsequence/migration": "2.2.2",
"@0xsequence/sessions": "2.2.2",
"@0xsequence/network": "2.2.2",
"@0xsequence/wallet": "2.2.2",
"@0xsequence/signhub": "2.2.2",
"@0xsequence/utils": "2.2.2"
},

@@ -36,3 +36,3 @@ "peerDependencies": {

"mockttp": "^3.6.0",
"@0xsequence/tests": "2.2.1"
"@0xsequence/tests": "2.2.2"
},

@@ -39,0 +39,0 @@ "files": [

import { Account } from '@0xsequence/account'
import { SequenceAPIClient } from '@0xsequence/api'
import { ETHAuth, Proof } from '@0xsequence/ethauth'
import { Indexer, SequenceIndexer } from '@0xsequence/indexer'
import { Indexer, SequenceIndexer, SequenceIndexerGateway } from '@0xsequence/indexer'
import { SequenceMetadata } from '@0xsequence/metadata'

@@ -23,2 +23,3 @@ import { ChainIdLike, findNetworkConfig } from '@0xsequence/network'

sequenceMetadataUrl: string
sequenceIndexerGatewayUrl: string
}

@@ -60,2 +61,3 @@

private indexerClients: Map<number, Indexer> = new Map()
private indexerGateway: SequenceIndexerGateway | undefined

@@ -271,2 +273,11 @@ private projectAccessKey?: string

async getIndexerGateway(tryAuth: boolean = true): Promise<SequenceIndexerGateway> {
if (!this.indexerGateway) {
const jwtAuth = (await this.getJWT(tryAuth)).token
this.indexerGateway = new SequenceIndexerGateway(this.settings.sequenceMetadataUrl, undefined, jwtAuth)
}
return this.indexerGateway
}
private getProofString(key: string): ProofStringPromise {

@@ -273,0 +284,0 @@ // check if we already have or are waiting for a proof string

@@ -324,4 +324,5 @@ import { ChainId, NetworkConfig, allNetworks, findNetworkConfig } from '@0xsequence/network'

onMigration?: (account: Account) => Promise<boolean>
projectAccessKey?: string
}): Promise<Session> {
const { dump, settings, editConfigOnMigration, onMigration, orchestrator } = args
const { dump, settings, editConfigOnMigration, onMigration, orchestrator, projectAccessKey } = args
const { contexts, networks, tracker, services } = { ...SessionSettingsDefault, ...settings }

@@ -347,3 +348,4 @@

orchestrator,
jwt: jwtExpired ? undefined : dump.jwt?.token
jwt: jwtExpired ? undefined : dump.jwt?.token,
projectAccessKey
})

@@ -375,3 +377,4 @@

orchestrator,
jwt: jwtExpired ? undefined : dump.jwt?.token
jwt: jwtExpired ? undefined : dump.jwt?.token,
projectAccessKey
})

@@ -378,0 +381,0 @@ } else {

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc