Getting 'first login' on the frontend using Lock

Hi

We’re using Lock and would like to get an indication that this is the user’s first login, on the frontend SPA (not in the rule).

Anyway to do this?

Thanks

Hi @avner.sorek,

Can you explain the use-case? In a rule, check if it the user’s first login and add a flag to the token with a custom claim.

If this isn’t a good solution then describe your use-case please.

Thanks,
Dan

1 Like

Hi @dan.woda,

Thanks for the solution, that should work.
The use case is firing a ‘signed up’ analytics event from the client side.

Thank you!

Great, let us know if you have any other questions!

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.