Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create a guard for commands that require a user's API key to be configured or provided #17

Open
lukeocodes opened this issue Aug 21, 2024 · 0 comments
Assignees

Comments

@lukeocodes
Copy link
Contributor

A guard is a common name for something that prevents unauthorized use in web and other apps.

Create a guard function that can be used as a PreRun on a command, to check that an API key is provided from;

  1. Environment variable DEEPGRAM_API_KEY
  2. Flag --api_key
  3. Config file from login or other
@lukeocodes lukeocodes added this to the Deepgram CLI v0 milestone Aug 21, 2024
@lukeocodes lukeocodes self-assigned this Aug 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant