Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/fredoist/supabase-auth-helpers-cli
A little helper to authenticate CLI tools using supabase
https://github.com/fredoist/supabase-auth-helpers-cli
Last synced: 9 days ago
JSON representation
A little helper to authenticate CLI tools using supabase
- Host: GitHub
- URL: https://github.com/fredoist/supabase-auth-helpers-cli
- Owner: fredoist
- License: mit
- Created: 2023-05-05T00:08:27.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2023-05-07T00:26:59.000Z (over 1 year ago)
- Last Synced: 2024-12-15T16:55:17.780Z (24 days ago)
- Language: TypeScript
- Homepage: https://npm.im/supabase-auth-helpers-cli
- Size: 22.5 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Supabase Auth for CLI tools
This submodule provides convenience helpers for implementing user authentication in CLI applications.
## Install the CLI helper library
NPM
```shell
npm install supabase-auth-helpers-cli
```YARN
```shell
yarn add supabase-auth-helpers-cli
```## Basic Setup
Import the createCLISupabaseClient client object.
```js
import { createCLISupabaseClient } from 'supabase-auth-helpers-cli';// define your supabase variables, must be passed to CLI tool at build
const supabaseUrl = '';
const supabaseKey = ''; // use your annon key and secure your db with RLS// create a new client for the CLI application
export const supabase = createCLISupabaseClient(supabaseUrl, supabaseKey);
```
You can then use the client in your CLI apps, see: [fredoist/greeting-you](https://github.com/fredoist/greeting-you).