airbadge-dev / airbadge

https://docs.airbadge.dev
Other
122 stars 12 forks source link

Docs Improvement? #3

Closed ondrejjcizek closed 3 weeks ago

ondrejjcizek commented 5 months ago

Hi @joshnuss,

I tried to get it done. I am running on Drizzle + Turso. I rewrite MySQL to SQLite.

I reached only that I can login with GitHub and then subscibed to mine created Basic Plan. But subscription is missing in data. Don't know why.

image

Another thing is signing out. Auth.js have {handle, signOut, signIn}. But it's not here... /auth/signout have signout button when click it I see this.

image

Also I tried Google Provider and it's not working. I have there Error 400: redirect_uri_mismatch. In Google Console I have same callback as for GitHub

image

I read 100% but there is not too much info to get it work :(

joshnuss commented 5 months ago

Hi Ondrejj,

Thanks for opening an issue, I will definitely be updating docs.

If you'd like to hop on a Discord call, I'd be happy to help debug these issues.

You can try importing {handle, signOut, signIn} from @auth/sveltekit, but I think you are making a good point that it should be re-exported by @airbadge/sveltekit.

For Drizzle, I think there will need to be an update to the adapter. I kind of mentioned it as "coming soon" in the docs: https://docs.airbadge.dev/database#drizzle

The reason is that the Drizzle adapter for Auth.js, it hardcoding the types. So either a custom drizzle adapter will be needed, or the ability to extend the Auth.js adapter is needed.

joshnuss commented 3 weeks ago

The repo has been updated to Auth.js v5 which fixes these issues.

The drizzle adapter is not yet supported, but will come eventually.