trails/apps/journal/app/lib/connected-services/credential-adapters/noop.ts
Ullrich Schäfer 03304c354b
Add Komoot import with public (bio verification) and authenticated modes
Two-mode import: public mode verifies Komoot account ownership by checking
that the user's trails.cool profile URL appears in their Komoot bio — no
credentials stored. Authenticated mode uses email + password (AES-256-GCM
encrypted) to import private tours as well.

Includes unit tests for crypto/komoot client and E2E tests for the full
connect + import flow.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-23 10:18:46 +02:00

11 lines
367 B
TypeScript

// No-op CredentialAdapter for providers whose credentials never expire and
// cannot be refreshed (e.g. Komoot basic-auth, public-mode connections).
import type { CredentialAdapter, Credentials } from "../types.ts";
export const noopCredentialAdapter: CredentialAdapter<Credentials> = {
isExpired: () => false,
async refresh(creds) {
return creds;
},
};