Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Auth: get notified on auth change #39

Merged
merged 1 commit into from
Aug 14, 2024
Merged

Conversation

abeatrix
Copy link
Collaborator

@abeatrix abeatrix commented Aug 14, 2024

CLOSE https://linear.app/sourcegraph/issue/CODY-3170/disable-right-click-context-menu-for-the-webview-if-the-extension-is

Also added a form for users to login in the webview, but currently the token is not stored anyway and can only be used during the current session. We will need to work on a follow-up to store the provided token to the extension secret storage.

vs_auth.mp4

To try the sign in screen, just remove your token from the env var to trigger the Auth view

if (key == "cody.activated")
{
var isAuthenticated = value == "true";
DebugLog(isAuthenticated.ToString(), "User is authenticated");
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@PiotrKarczmarz @tomaszgolebiowski here is where we can get notified when user auth status has changed so we don't need to poll AuthStatus constantly.

@tomaszgolebiowski tomaszgolebiowski merged commit 7d8a10e into main Aug 14, 2024
1 check passed
@tomaszgolebiowski tomaszgolebiowski deleted the bee/new-protocols branch August 14, 2024 07:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants