next-auth icon indicating copy to clipboard operation
next-auth copied to clipboard

fix: update `@auth/solid-start` to use new APIs

Open ndom91 opened this issue 1 year ago • 3 comments

☕️ Reasoning

  • Use returned signIn/signOut/auth/handler methods from SolidAuth()
  • Expose @auth/solid-start/client methods for client-side login/logout
  • Use Solid-start's new Middleware to append session onto event.locals.auth
  • Update solid usage to new shared fn's like setEnvDefaults from core
  • Export providers/* and additional types from solid package as well
  • Add apps/dev/solid/* app for development

TODOs:

  • 2 type issues open.
    • The res.headers.getSetCookie() one is weird because I'm 99% sure its a Response and it also doesn't pop up in the editor.
    • The other one I have no idea yet where its coming from yet. Seems to be an internal solid thing maybe, but I also don't know where I'm causing it to happen exactly. Have to do some more digging

image

  • Lots of cleanup I'm sure

🧢 Checklist

  • [ ] Documentation
  • [ ] Tests
  • [ ] Ready to be merged

🎫 Affected issues

📌 Resources

ndom91 avatar Feb 18 '24 17:02 ndom91

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
auth-docs ❌ Failed (Inspect) Apr 8, 2024 9:42pm
2 Ignored Deployments
Name Status Preview Comments Updated (UTC)
next-auth-docs ⬜️ Ignored (Inspect) Visit Preview Apr 8, 2024 9:42pm
nextra-docs ⬜️ Ignored (Inspect) Visit Preview Apr 8, 2024 9:42pm

vercel[bot] avatar Feb 18 '24 17:02 vercel[bot]

Update, got session loading during SSR in FE:

image

ndom91 avatar Feb 18 '24 17:02 ndom91