mirror of
https://github.com/kennethnym/aris.git
synced 2026-04-12 12:51:18 +01:00
Add credentials parameter to FeedSourceProvider.feedSourceForUser so providers can receive decrypted per-user credentials (OAuth tokens, passwords) from the user_sources table. Wire CredentialEncryptor into UserSessionManager to handle encrypt/decrypt. Providers receive plaintext and handle validation internally. Existing providers ignore the new parameter. Co-authored-by: Ona <no-reply@ona.com>
16 lines
397 B
TypeScript
16 lines
397 B
TypeScript
import { LocationSource } from "@aelis/source-location"
|
|
|
|
import type { FeedSourceProvider } from "../session/feed-source-provider.ts"
|
|
|
|
export class LocationSourceProvider implements FeedSourceProvider {
|
|
readonly sourceId = "aelis.location"
|
|
|
|
async feedSourceForUser(
|
|
_userId: string,
|
|
_config: unknown,
|
|
_credentials: unknown,
|
|
): Promise<LocationSource> {
|
|
return new LocationSource()
|
|
}
|
|
}
|