source: app/lib/definitions.ts@ 23a1424

nextjs
Last change on this file since 23a1424 was f20977e, checked in by Vasilaki Tocili <vasilakigorgi@…>, 4 months ago

fix: changing user's name, email and password

  • The NextAuth was using UUID instead of my database Serial integer ID,

so I changed the auth and the definitions to use the Serial ID from the
database to perform correctly the chaning of user's name, email and password

  • Removed redundant unused code from auth.d.ts
  • Updated the actions.ts of profile to use the new stringified integer

ID from the database as a SQL query parameter and also added a early
throwing check for the user ID if it's number or not

  • Property mode set to 100644
File size: 242 bytes
Line 
1// This file contains type definitions for the data.
2// It describes the shape of the data, and what data type each property should accept.
3
4export type User = {
5 user_id: number;
6 user_name: string;
7 email: string;
8 password: string;
9};
Note: See TracBrowser for help on using the repository browser.