scratchattach icon indicating copy to clipboard operation
scratchattach copied to clipboard

How to save session?

Open ccocks opened this issue 1 year ago • 1 comments

I login to scratch using scratch3.login, which returns a session. How can I save that session so that I don't have to repeatedly sign in.

ccocks avatar Oct 01 '24 16:10 ccocks

save the session id: session.session_id

the next time you run your program, log in using the session id:

session = scratch3.Session("session_id")

(this applies to scratchattach 1.7.4)

TimMcCool avatar Oct 01 '24 18:10 TimMcCool

For scratchattach 2.0.0, see https://github.com/TimMcCool/scratchattach/wiki/Documentation#logging-in

TimMcCool avatar Oct 21 '24 10:10 TimMcCool