Match NextAuth config with the course (#221)

* Create .env.local.example

* changes

* Update page.tsx

* Update definitions.ts

* wip signin validation

* fix validation in action

* fix

* remove import

* change

* update

* change

* added button state

* improved UI

---------

Co-authored-by: Steven Tey <stevensteel97@gmail.com>
This commit is contained in:
Balázs Orbán
2023-10-25 15:53:07 -07:00
committed by GitHub
parent 978ce53dd8
commit f8adecb7a4
16 changed files with 160 additions and 135 deletions

View File

@@ -12,7 +12,7 @@ async function seedUsers() {
// Create the "invoices" table if it doesn't exist
const createTable = await sql`
CREATE TABLE IF NOT EXISTS users (
id SERIAL PRIMARY KEY,
id UUID DEFAULT uuid_generate_v4() PRIMARY KEY,
name VARCHAR(255) NOT NULL,
email TEXT NOT NULL UNIQUE,
password TEXT NOT NULL