examples/auth/hono-full/README.md
Based on the Hono/JSX + Vite example by @MathurAditya724 \o/
This example shows how to use Supabase Auth both on the client and server side with Hono.
SQL Editor and run the following query to create the countries table.-- Create the table
create table countries (
id bigint primary key generated always as identity,
name text not null
);
-- Insert some sample data into the table
insert into countries (name)
values
('Canada'),
('United States'),
('Mexico');
alter table countries enable row level security;
create policy "authenticated users can read countries"
on public.countries
for select to authenticated
using (true);
npm install to install the dependencies.cp .env.example .env..env file.Run the vite dev server
npm run dev
Building
npm run build
This project is configured to use node runtime, you can change it to your desired runtime in the vite.config.js file. We are using @hono/vite-build package for building the project and @hono/vite-dev-server for running the dev server.