Add StreamPixels managed auth seams

This commit is contained in:
Meta Vens 2026-04-29 15:00:55 +01:00
commit f22db66d64
15 changed files with 589 additions and 26 deletions

View file

@ -103,6 +103,16 @@ export class InMemoryStore implements HeimdallStore {
return null;
}
async findStoredLinkedIdentityForAccount(accountId: string, provider: Provider): Promise<StoredLinkedIdentity | null> {
for (const linkedIdentity of this.linkedIdentities.values()) {
if (linkedIdentity.accountId === accountId && linkedIdentity.provider === provider) {
return clone(linkedIdentity);
}
}
return null;
}
async upsertLinkedIdentity(input: UpsertLinkedIdentityInput): Promise<StoredLinkedIdentity> {
const existing = [...this.linkedIdentities.values()].find(
(identity) => identity.provider === input.provider && identity.providerUserId === input.providerUserId