adonisjs / core

AdonisJS is a TypeScript-first web framework for building web apps and API servers. It comes with support for testing, modern tooling, an ecosystem of official packages, and more.
https://adonisjs.com
MIT License
16.28k stars 625 forks source link

i cant use String for accessTokens id #4465

Closed mohamadlounnas closed 3 months ago

mohamadlounnas commented 3 months ago

Package version

v6

Describe the bug

i wanna use cuid() for accessTokens table id, i can change the schema but there is no way to set it so its throw error

Reproduction repo

No response

mohamadlounnas commented 3 months ago

any updates?

thetutlage commented 3 months ago

Not something I am ready to support right now. You can instead use UUID's and rely on your Database to generate them for you. Client first ids cannot be supported for now.