All questions

When do I call identify and anonymize in a Vue app with Pinia auth?

Asked by kenji_dev on

Kkenji_dev

I keep login state in a Pinia store with the usual login and logout actions, and I want to hook identity in the right place so a user carries their profile after login and gets cleared on logout.

Concretely, which store action does each SDK call belong in, and what value does identify actually expect? I want to pass the right thing the first time rather than discover it at runtime.

Was this helpful?

0 answers

Still have questions?