Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bug: #1911

Closed
ZzyzxIsAlreadyTaken opened this issue Jun 10, 2024 · 2 comments
Closed

bug: #1911

ZzyzxIsAlreadyTaken opened this issue Jun 10, 2024 · 2 comments

Comments

@ZzyzxIsAlreadyTaken
Copy link

ZzyzxIsAlreadyTaken commented Jun 10, 2024

Provide environment information

System:
OS: macOS 14.5
CPU: (12) arm64 Apple M2 Max
Memory: 73.17 MB / 32.00 GB
Shell: 5.9 - /bin/zsh
Binaries:
Node: 20.12.2 - ~/.nvm/versions/node/v20.12.2/bin/node
npm: 10.5.0 - ~/.nvm/versions/node/v20.12.2/bin/npm

Describe the bug

t3 app with sqlite and drizzle does not update the userid field in the databse and we get a login error.

Screenshot 2024-06-10 at 13 35 23

Reproduction repo

https://github.com/ZzyzxIsAlreadyTaken/monthly

To reproduce

npm create t3-app@latest

◇ What will your project be called?
│ trenelitt

◇ Will you be using TypeScript or JavaScript?
│ TypeScript

◇ Will you be using Tailwind CSS for styling?
│ Yes

◇ Would you like to use tRPC?
│ Yes

◇ What authentication provider would you like to use?
│ NextAuth.js

◇ What database ORM would you like to use?
│ Drizzle

◇ Would you like to use Next.js App Router?
│ Yes

◇ What database provider would you like to use?
│ SQLite (LibSQL)

◇ Should we initialize a Git repository and stage the changes?
│ Yes

◇ Should we run 'npm install' for you?
│ Yes

◇ What import alias would you like to use?
│ ~/

Set up a provider (Ive testet Discord and Google).

Fail to log in (create user in database)

Additional information

I have tested this twice with two different project installations aswell. Also Ive tested to change the id in the user table schema to integer and autoincrement, and then the user is created, but the auth.ts file then shows errors.

This is if Im changing user table id:

auth.ts
Screenshot 2024-06-10 at 13 40 56

schema.ts
Screenshot 2024-06-10 at 13 41 18

@n0ait
Copy link

n0ait commented Jun 10, 2024

See #1906 (comment)

@ZzyzxIsAlreadyTaken
Copy link
Author

ZzyzxIsAlreadyTaken commented Jun 11, 2024

Duplicate:

Thanks for your reply. It seems like that was the exact same bug. I just did not find it by searching. Ive implemented the suggested fix, and it seems to work with the Google Adapter :) I can also see in the database that the id now is populated correctly with a string (a guid). I also see that a pull request has been submitted. So I hope that T3 will be updated as soon as possible :)

@ZzyzxIsAlreadyTaken ZzyzxIsAlreadyTaken closed this as not planned Won't fix, can't repro, duplicate, stale Jun 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants