Skip to content

Commit 255e45a

Browse files
bsneedBrandon Sneed
andauthored
Allow identify to be called with null. (#280)
Co-authored-by: Brandon Sneed <[email protected]>
1 parent 1e4675d commit 255e45a

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

packages/core/src/bridge.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ export interface Bridge {
5757
context: JsonMap
5858
): Promise<void>
5959
identify(
60-
user: string,
60+
user: string | null,
6161
traits: JsonMap | null,
6262
options: Options,
6363
integrations: Integrations,

packages/core/src/middleware.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ export interface IdentifyPayload
3535
extends MiddlewarePayload<
3636
'identify',
3737
{
38-
user: string
38+
user: string | null
3939
traits: JsonMap | null
4040
options: JsonMap
4141
integrations: Integrations

0 commit comments

Comments
 (0)