Skip to content
This repository has been archived by the owner on Nov 21, 2020. It is now read-only.

Commit

Permalink
create integration with email
Browse files Browse the repository at this point in the history
  • Loading branch information
munkhorgil committed Sep 10, 2020
1 parent f291a0b commit 5c71ce7
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/nylas/auth.ts
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@ const connectYahooAndOutlookToNylas = async (kind: string, integrationId: string

await createIntegration({
kind,
email,
integrationId,
nylasToken: access_token,
nylasAccountId: account_id,
Expand Down Expand Up @@ -106,6 +107,7 @@ const connectExchangeToNylas = async (integrationId: string, data: INylasIntegra
});

await createIntegration({
email,
kind: 'exchange',
integrationId,
nylasToken: access_token,
Expand Down Expand Up @@ -145,6 +147,7 @@ const connectImapToNylas = async (integrationId: string, data: INylasIntegration
});

await createIntegration({
email,
kind: 'imap',
integrationId,
nylasToken: access_token,
Expand Down

0 comments on commit 5c71ce7

Please sign in to comment.