Home / Companies / Netlify / Blog / Post Details
Content Deep Dive

How to setup serverless OAuth Flows with Netlify Functions & Intercom

Blog post from Netlify

Post Details
Company
Date Published
Author
David Wells
Word Count
1,674
Company Posts That Month
7
Language
English
Hacker News Points
-
Post removed?
No
Summary

This project utilizes Netlify Functions to handle OAuth login flows, specifically with Intercom as the third-party provider. It creates a custom "login with Intercom" button for an application by using two serverless Lambda functions: `auth.js` and `auth-callback.js`. The `auth.js` function redirects the user to Intercom's login screen after setting up an authorization URI, while the `auth-callback.js` function handles the authorization grant code returned from the successful Intercom login, exchanging it for a valid access token. This flow uses the Authorization Code Grant method and demonstrates how to securely connect with any number of third-party OAuth providers using serverless functions.

Trends Found in this Post
Trend Post Mentions Total Month Mentions Posts Companies MoM
Serverless 19 313 30 14 +198%
Use This Data

Use this post, company, and trend context to find content marketing opportunities, perform competitive analysis, or address product feature gaps via the Plushcap MCP server or the Plushcap API.