Using clerk to authenticate via cli tool
I am building a SAAS website that will have a CLI tool as well and am currently looking into how I want to handle authN/authZ. Ideally I can use the same authentication mechanism for my frontend, backend, and CLI. I’m looking into using clerk for this. I set it up in a test Next.js app and find it really easy to use on the website portion. What I am not sure about is how to use clerk to authenticate with a cli. I’m looking to do something similar to github cli’s gh auth login
to generate a token that can be used to authenticate requests and would love it if I could get the cli login to navigate to my web ui to generate the token. Has anyone set this up before and possibly have some code samples?
Using clerk to authenticate via cli tool
I am building a SAAS website that will have a CLI tool as well and am currently looking into how I want to handle authN/authZ. Ideally I can use the same authentication mechanism for my frontend, backend, and CLI. I’m looking into using clerk for this. I set it up in a test Next.js app and find it really easy to use on the website portion. What I am not sure about is how to use clerk to authenticate with a cli. I’m looking to do something similar to github cli’s gh auth login
to generate a token that can be used to authenticate requests and would love it if I could get the cli login to navigate to my web ui to generate the token. Has anyone set this up before and possibly have some code samples?
Using clerk to authenticate via cli tool
I am building a SAAS website that will have a CLI tool as well and am currently looking into how I want to handle authN/authZ. Ideally I can use the same authentication mechanism for my frontend, backend, and CLI. I’m looking into using clerk for this. I set it up in a test Next.js app and find it really easy to use on the website portion. What I am not sure about is how to use clerk to authenticate with a cli. I’m looking to do something similar to github cli’s gh auth login
to generate a token that can be used to authenticate requests and would love it if I could get the cli login to navigate to my web ui to generate the token. Has anyone set this up before and possibly have some code samples?