File tree Expand file tree Collapse file tree 3 files changed +6
-0
lines changed Expand file tree Collapse file tree 3 files changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -19,6 +19,7 @@ export function parseError(error: ClerkAPIErrorJSON): ClerkAPIError {
19
19
code : error . code ,
20
20
message : error . message ,
21
21
longMessage : error . long_message ,
22
+ clerkTraceId : error . clerk_trace_id ,
22
23
meta : {
23
24
paramName : error ?. meta ?. param_name ,
24
25
sessionId : error ?. meta ?. session_id ,
Original file line number Diff line number Diff line change @@ -14,6 +14,10 @@ export interface ClerkAPIError {
14
14
* A more detailed message that describes the error.
15
15
*/
16
16
longMessage ?: string ;
17
+ /**
18
+ * A trace ID that can be used to identify the error in the Clerk API logs.
19
+ */
20
+ clerkTraceId ?: string ;
17
21
/**
18
22
* Additional information about the error.
19
23
*/
Original file line number Diff line number Diff line change @@ -363,6 +363,7 @@ export interface ClerkAPIErrorJSON {
363
363
code : string ;
364
364
message : string ;
365
365
long_message ?: string ;
366
+ clerk_trace_id ?: string ;
366
367
meta ?: {
367
368
param_name ?: string ;
368
369
session_id ?: string ;
You can’t perform that action at this time.
0 commit comments