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

@clerk/backend

Package Overview
Dependencies
Maintainers
8
Versions
2047
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@clerk/backend - npm Package Compare versions

Comparing version 1.12.0-canary.vf5b63b3 to 1.12.0-refresh.vc186a28

dist/chunk-2242IWQJ.mjs

8

dist/api/endpoints/SessionApi.d.ts

@@ -11,2 +11,9 @@ import type { ClerkPaginationRequest, SessionStatus } from '@clerk/types';

}>;
type RefreshTokenParams = {
expired_token: string;
refresh_token: string;
request_origin: string;
request_originating_ip?: string;
request_headers?: Record<string, string[]>;
};
export declare class SessionAPI extends AbstractAPI {

@@ -18,4 +25,5 @@ getSessionList(params?: SessionListParams): Promise<PaginatedResourceResponse<Session[]>>;

getToken(sessionId: string, template: string): Promise<Token>;
refreshSession(sessionId: string, params: RefreshTokenParams): Promise<Token>;
}
export {};
//# sourceMappingURL=SessionApi.d.ts.map

20

dist/api/resources/JSON.d.ts

@@ -28,4 +28,2 @@ import type { InvitationStatus, OrganizationInvitationStatus, OrganizationMembershipRole, SignInStatus, SignUpStatus } from './Enums';

readonly TestingToken: "testing_token";
readonly Role: "role";
readonly Permission: "permission";
};

@@ -342,20 +340,2 @@ export type ObjectType = (typeof ObjectType)[keyof typeof ObjectType];

}
export interface RoleJSON extends ClerkResourceJSON {
object: typeof ObjectType.Role;
key: string;
name: string;
description: string;
permissions: PermissionJSON[];
is_creator_eligible: boolean;
created_at: number;
updated_at: number;
}
export interface PermissionJSON extends ClerkResourceJSON {
object: typeof ObjectType.Permission;
key: string;
name: string;
description: string;
created_at: number;
updated_at: number;
}
//# sourceMappingURL=JSON.d.ts.map

6

dist/api/resources/Webhooks.d.ts

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

import type { DeletedObjectJSON, EmailJSON, OrganizationInvitationJSON, OrganizationJSON, OrganizationMembershipJSON, PermissionJSON, RoleJSON, SessionJSON, SMSMessageJSON, UserJSON } from './JSON';
import type { DeletedObjectJSON, EmailJSON, OrganizationInvitationJSON, OrganizationJSON, OrganizationMembershipJSON, SessionJSON, SMSMessageJSON, UserJSON } from './JSON';
type Webhook<EvtType, Data> = {

@@ -14,7 +14,5 @@ type: EvtType;

export type OrganizationInvitationWebhookEvent = Webhook<'organizationInvitation.accepted' | 'organizationInvitation.created' | 'organizationInvitation.revoked', OrganizationInvitationJSON>;
export type RoleWebhookEvent = Webhook<'role.created' | 'role.updated' | 'role.deleted', RoleJSON>;
export type PermissionWebhookEvent = Webhook<'permission.created' | 'permission.updated' | 'permission.deleted', PermissionJSON>;
export type WebhookEvent = UserWebhookEvent | SessionWebhookEvent | EmailWebhookEvent | SMSWebhookEvent | OrganizationWebhookEvent | OrganizationMembershipWebhookEvent | OrganizationInvitationWebhookEvent | RoleWebhookEvent | PermissionWebhookEvent;
export type WebhookEvent = UserWebhookEvent | SessionWebhookEvent | EmailWebhookEvent | SMSWebhookEvent | OrganizationWebhookEvent | OrganizationMembershipWebhookEvent | OrganizationInvitationWebhookEvent;
export type WebhookEventType = WebhookEvent['type'];
export {};
//# sourceMappingURL=Webhooks.d.ts.map

@@ -20,2 +20,3 @@ export declare const API_URL = "https://api.clerk.com";

readonly Session: "__session";
readonly Refresh: "__refresh";
readonly ClientUat: "__client_uat";

@@ -22,0 +23,0 @@ readonly Handshake: "__clerk_handshake";

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

export declare const mockJwt = "eyJhbGciOiJSUzI1NiIsImtpZCI6Imluc18yR0lvUWhiVXB5MGhYN0IyY1ZrdVRNaW5Yb0QiLCJ0eXAiOiJKV1QifQ.eyJhenAiOiJodHRwczovL2FjY291bnRzLmluc3BpcmVkLnB1bWEtNzQubGNsLmRldiIsImV4cCI6MTY2NjY0ODMxMCwiaWF0IjoxNjY2NjQ4MjUwLCJpc3MiOiJodHRwczovL2NsZXJrLmluc3BpcmVkLnB1bWEtNzQubGNsLmRldiIsIm5iZiI6MTY2NjY0ODI0MCwic2lkIjoic2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De212c6kVz1R_L1d5DKjeWXpjUPAS_zFeZSIJEQLf4JNr4JCY38tfdnc3ajfDA3p36saf1XwmTdWXQKCXi75c2TJAXROs3Pgqr5Kw_5clygoFuxN5OEMhFWFSnvIBdi3M6w";
export declare const mockExpiredJwt = "eyJhbGciOiJSUzI1NiIsImtpZCI6Imluc18yR0lvUWhiVXB5MGhYN0IyY1ZrdVRNaW5Yb0QiLCJ0eXAiOiJKV1QifQ.eyJhenAiOiJodHRwczovL2FjY291bnRzLmluc3BpcmVkLnB1bWEtNzQubGNsLmRldiIsImV4cCI6MTY2NjY0ODIwMCwiaWF0IjoxNjY2NjQ3MjUwLCJpc3MiOiJodHRwczovL2NsZXJrLmluc3BpcmVkLnB1bWEtNzQubGNsLmRldiIsIm5iZiI6MTY2NjY0ODI0MCwic2lkIjoic2Vzc18yR2JEQjRlbk5kQ2E1dlMxenBDM1h6Zzl0SzkiLCJzdWIiOiJ1c2VyXzJHSXBYT0VwVnlKdzUxcmtabjlLbW5jNlN4ciJ9.jLImjg2vGwOJDkK9gtIeJnEJWVOgoCMeC46OFtfzJ1d8OT0KVvwRppC60QIMfHKoOwLTLYlq8SccrkARwlJ_jOvMAYMGZT-R4qHoEfGmet1cSTC67zaafq5gpf9759x1kNMyckry_PJNSx-9hTFbBMWhY7XVLVlrauppqHXOQr1-BC7u-0InzKjCQTCJj-81Yt8xRKweLbO689oYSRAFYK5LNH8BYoLZFWuWLO-6nxUJu0_XAq9xpZPqZOqj3LxFS4hHVGGmTqnPgR8vBetLXxSLAOBsEyIkeQkOBA03YA6enTNIppmy0XTLgAYmUO_JWOGjjjDQoEojuXtuLRdQHQ";
export declare const mockInvalidSignatureJwt = "eyJhbGciOiJSUzI1NiIsImtpZCI6Imluc18yR0lvUWhiVXB5MGhYN0IyY1ZrdVRNaW5Yb0QiLCJ0eXAiOiJKV1QifQ.eyJhenAiOiJodHRwczovL2FjY291bnRzLnRhbXBlcmVkLWRvbWFpbi5kZXYiLCJleHAiOjE2Nj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QepGg";

@@ -14,2 +14,3 @@ import type { ClerkRequest } from './clerkRequest';

sessionTokenInCookie: string | undefined;
refreshTokenInCookie: string | undefined;
clientUat: number;

@@ -16,0 +17,0 @@ suffixedCookies: boolean;

import type { ClerkUrl } from './clerkUrl';
/**
* A class that extends the native Request class,
* adds cookies helpers and a normalised clerkUrl that is constructed by using the values found
* in req.headers so it is able to work reliably when the app is running behind a proxy server.
*/
declare class ClerkRequest extends Request {

@@ -3,0 +8,0 @@ readonly clerkUrl: ClerkUrl;

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

import type { ApiClient } from '../api';
import type { VerifyTokenOptions } from './verify';

@@ -11,3 +12,4 @@ export type AuthenticateRequestOptions = {

afterSignUpUrl?: string;
apiClient?: ApiClient;
} & VerifyTokenOptions;
//# sourceMappingURL=types.d.ts.map
{
"name": "@clerk/backend",
"version": "1.12.0-canary.vf5b63b3",
"version": "1.12.0-refresh.vc186a28",
"description": "Clerk Backend SDK - REST Client for Backend API & JWT verification utilities",

@@ -98,4 +98,4 @@ "homepage": "https://clerk.com/",

"dependencies": {
"@clerk/shared": "2.8.0-canary.vf5b63b3",
"@clerk/types": "4.21.0-canary.vf5b63b3",
"@clerk/shared": "2.7.3-refresh.vc186a28",
"@clerk/types": "4.20.2-refresh.vc186a28",
"cookie": "0.5.0",

@@ -102,0 +102,0 @@ "snakecase-keys": "5.4.4",

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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