Skip to content

Add OpenCode Supermemory auth prompt#55

Closed
ishaanxgupta wants to merge 1 commit into
mainfrom
codex/opencode-auth-login
Closed

Add OpenCode Supermemory auth prompt#55
ishaanxgupta wants to merge 1 commit into
mainfrom
codex/opencode-auth-login

Conversation

@ishaanxgupta

@ishaanxgupta ishaanxgupta commented Jun 22, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Add an OpenCode auth hook for Supermemory OAuth and declare the hook in package.json.
  • Add a first-message fallback for unauthenticated installs: OpenCode opens the Supermemory login URL once and injects a visible reminder with the auth link.
  • Reuse the existing browser auth callback server through a new createAuthSession() helper, while keeping the CLI login flow intact.

@ishaanxgupta ishaanxgupta changed the title [codex] Add OpenCode Supermemory auth prompt Add OpenCode Supermemory auth prompt Jun 22, 2026
@ishaanxgupta ishaanxgupta marked this pull request as ready for review June 22, 2026 10:49
Comment thread src/services/auth.ts

export async function startAuthFlow(timeoutMs = AUTH_TIMEOUT): Promise<AuthResult> {
const session = await createAuthSession(timeoutMs);
console.log("Opening browser for authentication...");

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

do we want to do all these loggings?

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