Skip to content

Identity is empty after executing identify #301

Open
@majdanov

Description

@majdanov

Description

flagsmith.identity is empty after executing flagsmith.identify

await flagsmith.identify(accountId);
console.log(flagsmith.identity); // undefined
if (!flagsmith.identity) { // always true because identity is undefined
  await flagsmith.identify(accountId);
}

Context

I am trying to upgrade flagsmith from 3.24.0 to 9. The problem is reproduced from version 5.0.0 and later.

Is it a bug or am I doing something wrong?

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions