New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@logto/client

Package Overview
Dependencies
Maintainers
1
Versions
54
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@logto/client - npm Package Compare versions

Comparing version 2.0.0 to 2.1.0

3

lib/index.d.ts

@@ -1,2 +0,2 @@

import type { IdTokenClaims, UserInfoResponse, InteractionMode } from '@logto/js';
import { type IdTokenClaims, type UserInfoResponse, type InteractionMode, type AccessTokenClaims } from '@logto/js';
import type { Nullable } from '@silverhand/essentials';

@@ -23,2 +23,3 @@ import type { ClientAdapter } from './adapter.js';

getIdTokenClaims(): Promise<IdTokenClaims>;
getAccessTokenClaims(resource?: string): Promise<AccessTokenClaims>;
fetchUserInfo(): Promise<UserInfoResponse>;

@@ -25,0 +26,0 @@ signIn(redirectUri: string, interactionMode?: InteractionMode): Promise<void>;

@@ -1,2 +0,2 @@

import { Prompt, withDefaultScopes, decodeIdToken, fetchUserInfo, generateSignInUri, verifyAndParseCodeFromCallbackUri, fetchTokenByAuthorizationCode, revoke, generateSignOutUri, fetchTokenByRefreshToken, fetchOidcConfig, verifyIdToken } from '@logto/js';
import { Prompt, withDefaultScopes, decodeIdToken, decodeAccessToken, fetchUserInfo, generateSignInUri, verifyAndParseCodeFromCallbackUri, fetchTokenByAuthorizationCode, revoke, generateSignOutUri, fetchTokenByRefreshToken, fetchOidcConfig, verifyIdToken } from '@logto/js';
export { LogtoError, LogtoRequestError, OidcError, Prompt, ReservedScope, UserScope } from '@logto/js';

@@ -57,2 +57,6 @@ import { createRemoteJWKSet } from 'jose';

}
async getAccessTokenClaims(resource) {
const accessToken = await this.getAccessToken(resource);
return decodeAccessToken(accessToken);
}
async fetchUserInfo() {

@@ -59,0 +63,0 @@ const { userinfoEndpoint } = await this.getOidcConfig();

{
"name": "@logto/client",
"version": "2.0.0",
"version": "2.1.0",
"type": "module",

@@ -24,3 +24,3 @@ "main": "./lib/index.cjs",

"dependencies": {
"@logto/js": "^2.0.0",
"@logto/js": "^2.1.0",
"@silverhand/essentials": "^2.6.2",

@@ -27,0 +27,0 @@ "camelcase-keys": "^7.0.1",

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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