Add StreamPixels managed auth seams
This commit is contained in:
parent
5ef94bb725
commit
f22db66d64
15 changed files with 589 additions and 26 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue