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>
11 lines
367 B
TypeScript
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;
|
|
},
|
|
};
|