CoBlocksGet CoBlocks→
Skip to guide
Wiki/Start here
COBLOCKS WIKI

Scratch Auth & accounts

Verify your Scratch identity, understand account matching, and resolve sign-in problems.

CoBlocks user guide
On this pageWhat is Scratch Auth?How to sign inIf you get logged out

What is Scratch Auth?

Scratch Auth verifies which Scratch account belongs to you so CoBlocks can identify you and check project access. Use the same account you are signed in to on Scratch.

How to sign in

  1. Sign in to Scratch in the browser where CoBlocks is installed.
  2. Open the extension popup and click Sign in with Scratch Auth.
  3. Complete the instructions in the tab that opens, then return to Scratch and reopen CoBlocks.
See the sign-in button
CoBlocks popup with the Connect your Scratch account dialog and Sign in with Scratch Auth button
Sign-in example from an earlier build. Start from Sign in with Scratch Auth; follow the provider’s current instructions in the tab that opens.

If you get logged out

Check that your Scratch and CoBlocks usernames match. Signing in to the same CoBlocks account elsewhere ends its previous session. To switch accounts, use Settings → Log out, change your Scratch account, and sign in again.

More detail & reference

Connect your account

CoBlocks verifies the identity returned by Scratch Auth and issues its own backend session token. Do not paste passwords or login tokens into chat, GitHub issues, or invite URLs.

  1. Sign in to Scratch first, in the same browser profile where CoBlocks is installed.
  2. Click the extension icon and select Sign in with Scratch Auth.
  3. Follow the Scratch Auth provider’s verification instructions in the new tab. Use the same username as your active Scratch account.
  4. Wait for the CoBlocks sign-in success page. Choose Open Scratch or close that sign-in tab.
  5. Return to the popup. Expand Settings to check the CoBlocks account username.
See the sign-in button
CoBlocks popup with the Connect your Scratch account dialog and Sign in with Scratch Auth button
Sign-in example from an earlier build. Start from Sign in with Scratch Auth; follow the provider’s current instructions in the tab that opens.

Account matching and session lifetime

RuleBehavior in the current release
Same Scratch accountThe verified CoBlocks username must match the Scratch account currently signed in. Usernames are compared without case sensitivity.
One active session per accountSigning in elsewhere invalidates the previous CoBlocks session. Use separate Scratch accounts for separate collaborators.
30-day tokenBackend-issued tokens expire after 30 days. A token can become invalid earlier through logout, another login, or an account change.
Short-lived login flowA pending Scratch Auth handoff expires after five minutes. Start again from the popup if it expires.

Switch accounts or log out

Changing the custom server also clears the current login and reloads the extension. Sign in separately on the new server; server accounts and project lists are not automatically transferred.

  1. Save your Scratch work first.
  2. Open CoBlocks → Settings → CoBlocks account → Log out.
  3. If switching accounts, sign out of Scratch and sign in with the new account.
  4. Open the popup and complete Scratch Auth again with that account.

If sign-in keeps looping

  • Check the Scratch username and the CoBlocks account username; differences in capitalization alone should not cause a mismatch.
  • Make sure another device or browser profile is not repeatedly signing in to the same CoBlocks account.
  • Allow the extension to access Scratch and your API server. Refresh Scratch after installing or reloading the extension.
  • Finish the new login tab rather than reopening an old callback URL. After an expired handoff, start again from the popup.
  • Check service status. Provider/network failures can interrupt verification; wait before retrying repeated login attempts.

Source references

Check the code and release notes if your installed build looks different.

extension/background/auth.js ↗extension/popups/script.js ↗backend/utils/scratch-auth.js ↗
Latest release notes ↗
Something different in your build? Report a documentation issue ↗