Skip to content
This repository has been archived by the owner on Dec 22, 2023. It is now read-only.

Add anonymous user flag #1425

Closed
3 tasks done
kiootic opened this issue May 18, 2020 · 2 comments
Closed
3 tasks done

Add anonymous user flag #1425

kiootic opened this issue May 18, 2020 · 2 comments
Assignees

Comments

@kiootic
Copy link
Contributor

kiootic commented May 18, 2020

ref #1370

  • Add anonymous user flag in user model
  • Add anonymous user flag header in session resolver
  • Update SDK user model
@kiootic kiootic self-assigned this May 20, 2020
@kiootic
Copy link
Contributor Author

kiootic commented May 20, 2020

Since user API model creation is tightly coupled within Auth API handlers. I'll postpone the update of user model until we've decided whether to drop Auth API in #1434 .

@kiootic
Copy link
Contributor Author

kiootic commented May 22, 2020

Workarounds at the moment:

  • Detect signup of anonymous users: use after_user_create hook and check if any of the identities is of anonymous type.
  • Detect promotion of anonymous user to normal user: use after_identity_delete hook and check if any of the deleted identities is of anonymous type.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants