redwoodjs / redwood

The App Framework for Startups
https://redwoodjs.com
MIT License
16.92k stars 973 forks source link

Auth package versions documentation #4016

Open domvernon opened 2 years ago

domvernon commented 2 years ago

👋 I think I've noticed some things whilst working with auth recently (swapping netlify identify for Clerk!) and hopefully my understanding is correct. Most of these might be down to documentation, but I know this is due for an overview at some point so this issue might just serve as more of a reminder of things to think about.

jtoar commented 2 years ago

Hey @domvernon sorry for the late response!

isn't immediately obvious if this is ok and the auth package can be versioned independently, or should be kept the same as per all the other packages.

Great point—you definitely can't use a different version of the auth package (or any for that matter). To make it worse, when you use a different version, things only subtly break.

Also when setting up manually, the default behaviour of the yarn add command seems to be to add the caret modifier eg "@redwoodjs/auth": "^0.41.0". This is different from the yarn rw setup auth command which adds an exact version.

Another great point. We should make the behavior consistent.

Would you be up for taking this on? No pressure—if not I can shop it out, but wanted to give you first dibs. As you said in your OP, this would most likely be fixed via docs.