Automatic session user

I’d like to have an automatic user id for every user connected to my app whether they have registered for a user account or not. I suppose I can just use a uuid and store it in a session, but I was wondering if there is a way to do something more like a session user, where the user is given a full user account id, which would be merged/migrated to their actual user if/when the log in. I don’t actually need the second part for now.

Not sure if it fits your requirement – check out brettle:accounts-anonymous …create an automatic userid if a user is not logged in.

1 Like

That might work. Thanks!

Did this in a mobile app wherein first access creates a temp account using account-base functions. Just added a temp key on the user record which is updated during “registration”

Saved the “phantom” username and password in local storage (native storage cordova plugin).