Repository navigation
Conversation
The "not allowed" screen (shared by the Word task pane and the Google Docs sidebar) had no way to pick up an access grant made after sign-in: the user had to sign out and back in. It also said access was limited to Calvin addresses, which is no longer the whole story. - useDeviceAuth.refresh() / AppAuthSession.refreshUser() re-fetch the session with the current token. A gone session falls back to the login screen; a transport failure keeps the session and rejects. fetchUserInfo now throws a typed NoSessionError so the two can be told apart. - NotAllowedScreen (extracted from pages/app) shows the signed-in email, a "Check again" button with visible outcome, and updated copy. - Login note now says sign-in is with a Google account. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_017KwGFimwoz4gnsXSUpJ1Eq
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
First of two PRs toward giving workshop participants beta access. This one is the minimal piece; the access-code flow comes next.
Why
The "not allowed" screen, which the Word task pane and the Google Docs sidebar share, had no way to see an access grant made after sign-in. The user had to sign out and back in. Its text also said access was limited to Calvin addresses only, which is no longer true.
With this change, an operator can grant access (today,
alwaysAllowin the DB) while participants wait, and they click Check again instead of signing in again.What changed
useDeviceAuth.refresh()/AppAuthSession.refreshUser()re-fetch the session with the current token.fetchUserInfonow throws a typedNoSessionErrorso the two cases can be told apart.NotAllowedScreen(moved out ofpages/app/index.tsx) now:Testing
refresh(grant picked up, session gone, transport failure) and the screen (email shown, re-check, failed check isn't reported as a denial).npm test(245 passing),tsc,eslint, andprettierall pass.get-session: not allowed → Check again → still denied → granted → the app renders.editor-login.pngandeditor-login-device-code.png, so those two baselines need regenerating with the Frontend Tests workflow (update-snapshots=true).Generated by Claude Code