Question

How to set user authentication for my CLI app?

  • 12 December 2021
  • 0 replies
  • 39 views

Hi,

 

I am building a custom App that i wish to put on the zapier App list someday. I am using Zapier CLI way. I need to know how can i build a feature where users can login to my App, when they use our App as a trigger or an action for the first time. I have seen many Apps asks us to lgin, like Typeform, Google Forms. I want the same thing for my App. 

Currently,  I am following the Docs where I got to know that i can add a Auth file in my development process, which seem like below.: 

 

const authentication = {

type: 'basic',

test: {

url: 'https://api.github.com/user'

},

connectionLabel: '{{bundle.authData.username}}'

};



But this is for my test perspective. How can i build something, where user can get to login with multiple options like Basic, Custom,etc.. ? Will that be enabled by Zapier team once App is approved and deployed ? 


This post has been closed for comments. Please create a new post if you need help or have a question about this topic.