StableStudio icon indicating copy to clipboard operation
StableStudio copied to clipboard

Multi user\session support

Open jakerator opened this issue 2 years ago • 4 comments

Is your feature request related to a problem? Please describe. Is there a way to run single install for multiple users, to make each browser session independent?

Describe the solution you'd like If possible, need to make a way to separate browser session (by some auth, url variable etc), to allow multiple users on single running instance

jakerator avatar May 29 '23 12:05 jakerator

DreamStudio accurately supports this - wonder how it was done.

harrywang avatar May 29 '23 12:05 harrywang

DreamStudio accurately supports this - wonder how it was done.

Hm... Any documentation about that in DreamStudio?

jakerator avatar May 29 '23 15:05 jakerator

This should be possible out of the box if I'm not misunderstanding. StableStudio is a react app, meaning it can be served as a static bundle and each browser has its own instance. Auth can be implemented if you need a way to differentiate users between sessions but is implementation-specific.

KAJdev avatar Jun 02 '23 17:06 KAJdev

Working on it, I saw that you can create different images per user if each of your users has a UUID4. In the createStableDiffusionImage, queryAssets, etc. methods, you can send a project id, which is the UUID4. When your user creates an images, is sent through the specific UUID4 you gave it, and it will work perfectly having just your user images (associated to the UUID4)

santigibo avatar Jul 04 '23 18:07 santigibo