@clerk/backend
Advanced tools
Comparing version 1.22.1-snapshot.v20250115221341 to 1.23.0-canary.v20250115223429
import type { ClerkPaginationRequest, SessionStatus } from '@clerk/types'; | ||
import type { Cookies } from '../resources/Cookies'; | ||
import type { PaginatedResourceResponse } from '../resources/Deserializer'; | ||
@@ -17,2 +18,4 @@ import type { Session } from '../resources/Session'; | ||
request_headers?: Record<string, string[]>; | ||
suffixed_cookies?: boolean; | ||
format?: 'token' | 'cookie'; | ||
}; | ||
@@ -25,2 +28,8 @@ export declare class SessionAPI extends AbstractAPI { | ||
getToken(sessionId: string, template: string): Promise<Token>; | ||
refreshSession(sessionId: string, params: RefreshTokenParams & { | ||
format: 'token'; | ||
}): Promise<Token>; | ||
refreshSession(sessionId: string, params: RefreshTokenParams & { | ||
format: 'cookie'; | ||
}): Promise<Cookies>; | ||
refreshSession(sessionId: string, params: RefreshTokenParams): Promise<Token>; | ||
@@ -27,0 +36,0 @@ } |
export * from './AccountlessApplication'; | ||
export * from './AllowlistIdentifier'; | ||
export * from './Client'; | ||
export * from './Cookies'; | ||
export * from './DeletedObject'; | ||
@@ -5,0 +6,0 @@ export * from './Email'; |
@@ -6,2 +6,3 @@ import type { InvitationStatus, OrganizationInvitationStatus, OrganizationMembershipRole, SignInStatus, SignUpStatus } from './Enums'; | ||
readonly Client: "client"; | ||
readonly Cookies: "cookies"; | ||
readonly Email: "email"; | ||
@@ -38,2 +39,6 @@ readonly EmailAddress: "email_address"; | ||
} | ||
export interface CookiesJSON { | ||
object: typeof ObjectType.Cookies; | ||
cookies: string[]; | ||
} | ||
export interface TokenJSON { | ||
@@ -40,0 +45,0 @@ object: typeof ObjectType.Token; |
{ | ||
"name": "@clerk/backend", | ||
"version": "1.22.1-snapshot.v20250115221341", | ||
"version": "1.23.0-canary.v20250115223429", | ||
"description": "Clerk Backend SDK - REST Client for Backend API & JWT verification utilities", | ||
@@ -81,4 +81,4 @@ "homepage": "https://clerk.com/", | ||
"tslib": "2.4.1", | ||
"@clerk/types": "^4.41.0-snapshot.v20250115221341", | ||
"@clerk/shared": "^2.20.7-snapshot.v20250115221341" | ||
"@clerk/shared": "^2.20.7-canary.v20250115223429", | ||
"@clerk/types": "^4.40.3-canary.v20250115223429" | ||
}, | ||
@@ -85,0 +85,0 @@ "devDependencies": { |
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
1394111
209
13204