Skip to content

[1b] Google OAuth sign-in + JWT session #4

@andrmaz

Description

@andrmaz

What to build

Implement the Google OAuth sign-in flow under /auth/google/*. On successful callback, issue a JWT (or server-side session token) that encodes user identity and org membership. Add a validation middleware that rejects missing/expired tokens with a clear error. Expose /api/me to verify session state.

Acceptance criteria

  • A user can complete Google SSO and land on a success state.
  • A valid JWT/session token is issued and verifiable by the middleware.
  • /api/me returns authenticated user identity.
  • Invalid or expired tokens are rejected with a structured error response.
  • Unit tests cover token issuance and validation paths.

Blocked by

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requestmvpCortex MVP scope

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions