What's the best way to verify Zapier users in a Vue-Node app?

Hey everyone, I’m working on a Vue-Node project and I’m stuck trying to set up user authentication with Zapier. I’ve been looking for a way to let users log in with their Zapier accounts, but I’m not having much luck.

I found an API endpoint that looks promising:

// https://zapier.com/api/v3/login
{
  "user_id": 12345678
}

The problem is, it needs a user_id and I’m not sure how to get that. I’ve searched high and low for official docs on authenticating Zapier users, but I’m coming up empty-handed.

Has anyone here successfully integrated Zapier authentication into their app? Any tips or tricks would be super helpful. I’m especially interested in finding the right API to use for this. Thanks in advance for any advice!

I’ve had some experience integrating Zapier authentication in a Node.js app, and I can tell you it’s not as straightforward as one might hope. The endpoint you found isn’t meant for third-party auth. Instead, you’ll want to use Zapier’s OAuth 2.0 flow.

First, you’ll need to register your app with Zapier to get client credentials. Then, implement the OAuth flow in your Vue frontend and Node backend. In Vue, you’ll redirect users to Zapier’s authorization page. Your Node backend will handle exchanging the authorization code for an access token.

One thing to watch out for: Zapier’s documentation can be a bit outdated. You might need to experiment or reach out to their support for the most current endpoints. It took me a while to get it working smoothly, but once set up, it’s pretty reliable.

Just be prepared for some trial and error. And don’t hesitate to contact Zapier’s developer support if you hit any roadblocks. They can be quite helpful in providing guidance on best practices and troubleshooting.

I’ve implemented Zapier authentication in a similar project, and I can share some insights. The endpoint you found isn’t meant for third-party authentication. Instead, you should look into using Zapier’s OAuth 2.0 flow. This involves registering your app with Zapier to get client credentials, then implementing the OAuth flow in your Vue frontend and Node backend.

For the Vue side, you’ll need to redirect users to Zapier’s authorization page. On the Node side, you’ll exchange the authorization code for an access token. This token can then be used to make API calls on behalf of the user.

Keep in mind that Zapier’s documentation for this process isn’t always up-to-date. You might need to reach out to their developer support for the latest endpoints and best practices. It took some trial and error, but once set up, it works reliably.

hey there! i’ve worked with zapier before, and the oauth 2.0 flow is def the way to go. you’ll need to register ur app with zapier first to get the client creds. then set up the auth flow in ur vue frontend and node backend. it’s a bit tricky but worth it. good luck!