Skip to content

fredoist/supabase-auth-helpers-cli

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Supabase Auth for CLI tools

This submodule provides convenience helpers for implementing user authentication in CLI applications.

Install the CLI helper library

NPM

npm install supabase-auth-helpers-cli

YARN

yarn add supabase-auth-helpers-cli

Basic Setup

Import the createCLISupabaseClient client object.

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.

About

A little helper to authenticate CLI tools using supabase

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Sponsor this project

 

Packages

No packages published