-
-
Notifications
You must be signed in to change notification settings - Fork 3.3k
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
feat: add @auth/astro framework library with example & docs #6463
Conversation
First draft rewrite. Still missing a few instructions such as, node version disclaimer, polyfill disclaimer, setting up the astro.config.mjs in server mode (and accompanying adapter), rewording the callback URL explanation, and explaining the authOptions object that needs to be created by the end user as well as what actions to take when changing the prefix from the default "/api/auth" prefix.
Co-authored-by: Reuben Tier <64310361+TheOtterlord@users.noreply.github.com>
Update index.md
Improvements and Docs
fix: Addtl docs and source fix
Improve stability
Only a day late 😅 This latest change turns the package into an Astro integration and removes a large portion of the installation process, as well as remove some annoying bugs & DX decisions. I've also updated the documentation to rely on a |
Just came across this PR when looking into adding Astro support to Auth.js, great work here! @TheOtterlord let me know if I can help at all! It'd be amazing to see The idea of routing this through Astro's integrations API is really interesting to avoid boilerplate - I wonder if there's something we can do to make it easier to access environment variables when configuring auth providers without reaching for Vite's |
@tony-sull We are actually developing this further on this repo https://github.com/nowaythatworked/auth-astro and merge the results in here periodically. Feel free to PR or join the Discussion on the Astro Discord |
9784f29
to
37bb6eb
Compare
Any update on this? Waiting for this bad boy so I can get Auth working with Astro 🙏 |
Same! |
The current version of this PR is behind |
I have fixed some things (monorepo functionality, weird edge bugs, consistent formatting) and added some stuff (defineConfig helper) in my fork, if you want to take some or all of it. I have submitted some changes as PRs already, and would be happy to submit other changes or the whole thing as a PR. |
Same! |
We need an update asap!! |
Any update ? |
fa96b45
to
65aa467
Compare
Really looking for this to be merged <3 |
I'm using this for commercial purposes but let's get this officially supported. Astro is huge. |
Hello, any updates on this? :) |
Would be really could to get this merged! |
Hello, any update on this PR? |
+1 for Astro with Auth!! |
@TheOtterlord can you take a look at the merge conflicts? Thanks! |
any news? Hopefully not ded |
@ndom91 this PR fell behind both auth-astro and this repo, so I've re-implemented using the latest version of @auth/core and the docs in a new PR: #9856 Hope to continue the conversation over there! Excited to pick this up again! (and while everyone is waiting, |
nextauthjs/next-auth#9856 is the next iteration of nextauthjs/next-auth#6463
☕️ Reasoning
Supersedes #6425
🚀 Introduces an Astro framework package, with documentation & an example. The package exposes Astro components in addition to the methods.
Thanks to @tajkirkpatrick and @nowaythatworked who've helped out with building, debugging & documenting this package.
I've deployed the included example application to https://auth-astro-example.vercel.app/ feel free to take a look.
🧢 Checklist
🎫 Affected issues
Please scout and link issues that might be solved by this PR.
Fixes: INSERT_ISSUE_LINK_HERE
📌 Resources