▲ 6 r/learnjavascript+1 crossposts

Better-auth not adding user info to the user table in React

I'm creating a test app to work on authentication and authorization with a database using Better-Auth. I have never used Better Auth before and I'm having some issues with it. I have added the schema to the Postgres database to make the table, and whenever i create a new account, it will add a new instance to the account table, but not the user table.

 const data = await auth.api.signUpEmail({
            body: {
                email: req.body.email,
                name: req.body.name, 
                password: hashedPass,
                
            },
        });

This is the code i have in my server.js to add the info. The info comes from a form on the front end. It super basic right now since I'm just learning how to use it. The docs for better-auth say these are the only required fields to be able to submit into the database. I receive no errors when sending the data to my database, it just simply isnt adding anything to the user table. I'll be happy to provide any other necessary code or info. Im using React by the way.

export const auth = betterAuth({
  database: new Pool({
    user: 'postgres',
    host: 'localhost',
    database: 'test',
    password: process.env.DB_PASS,
    port: 5432,
    max: 10
}),
emailAndPassword: {
    enabled: true
}



});

The code above is the auth.ts configuration as i have it right now. i'm sure im missing something, but i havent found out what yet. Does anyone have any idea why the info isnt being added to the user table in Postgres?

reddit.com
u/thatboi219 — 5 days ago

How unattractive is jealousy/possessiveness in a man?

I talk to a female friend quite often about this kind of thing, and while she says she likes it, I also understand plenty of women dont at all. I was curious what other women thought. For the record, im not talking about a super toxic amount of jealousy or possessiveness. Obviously thats always bad.

reddit.com
u/thatboi219 — 13 days ago
▲ 1 r/EDH

Do you think this deck would be too unfun to go against?

https://archidekt.com/decks/24261172/wasp

I asked about this deck concept the other day and really liked the idea of using Wasp for it. However, I'm very aware that people hate decks that interact with others and render creatures useless. The deck is by no means fast, but once it gets the ball rolling, it seems like it can shut creatures down quite easily. The main win cons are Lab Maniac/Jace, Psychic Corrosion, and Psychosis Crawler. If I can draw into Teferi's Ageless Insight at a good time, I can really end games fast. Would this kind of deck make you roll your eyes? My playgroup tends to be creature heavy, which is why i figured this would potentially be unfun. If you think this commander would be cringe, Id love other blue commanders youd think would be a more fun alternative. Doesnt have to be mono-blue. Thank you!

reddit.com
u/thatboi219 — 1 month ago
▲ 5 r/EDH

Is there a commander that benefits greatly from the blue "creature gets -x/-0" spells?

I have been wanting to build something that utilizes spells with effects like [[Blinding Spray]]. Off the top of my head, the only commander I would think could work is using [[Vial Smasher the Fierce]] with a blue partner to get some damage off using these instants on every turn. Aside from that, I can't think of a commander that can have win cons based around that effect that isn't just a pillow fort azorius type deck. Are there blue commanders that would be able to use this effect well?

reddit.com
u/thatboi219 — 1 month ago

Hopeless romantic books similar to The Princess Bride

I'd love to read a fantasy book with a hopeless romantic dynamic like Westley and Buttercup had in The Princess Bride. I want a story where its love at first sight. No enemy-to-lover or slow burn stories. I'd also like if it had some high stakes along the romance story. I'm not interested in super spicy books. I don't mind spicy scenes, but I don't want it to be the main point of the book. Also, id prefer if both characters were humans. Thanks in advance!

reddit.com
u/thatboi219 — 2 months ago

Hopeless romantic books

I just recently watched The Princess Bride for the first time and adored the relationship between Buttercup and Westley. I was looking for a book similar to that dynamic, where they are madly in love and show nothing but love for each other. I dont want a slow burn or enemies-to-lover trope, just pure love from the beginning. Id prefer if it had some action and high-stake siutations in it as well. Im not HUGE on smut books, but i dont mind a spicy scene or 2. I just dont want the entire book to be about sex.

And before anyone comments, I do know there is a book of The Princess Bride which i also fully intend on buying.

reddit.com
u/thatboi219 — 3 months ago

Hopeless romantic books

I just recently watched The Princess Bride for the first time and adored the relationship between Buttercup and Westley. I was looking for a book similar to that dynamic, where they are madly in love and show nothing but love for each other. I dont want a slow burn or enemies-to-lover trope, just pure love from the beginning. Id prefer if it had some action and high-stake siutations in it as well.

And before anyone comments, I do know there is a book of The Princess Bride which i also fully intend on buying.

reddit.com
u/thatboi219 — 3 months ago