-
Notifications
You must be signed in to change notification settings - Fork 973
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
Nhost Auth 1.0 #1725
Nhost Auth 1.0 #1725
Conversation
This is amazing @nunopato 🚀 Thank you for getting this started. I'm setting this as a Draft release. When things are ready for review, just change the status and let us know. Looping in @dthyresson and @Tobbe, either who can help run point of contact for this. Lastly, there are two things that could be great next steps beyond this PR:
|
Thanks for the PR @nunopato. Great start on the auth client! Looking at the code I'm missing decoder stuff. Can you please take a look at Also please fix the lint errors and then I'll have another look at the code. Thanks again for getting this started 🙂 |
@thedavidprice @Tobbe thank you for your comments.
Will do! I actually built a very simple example app with the changes from this PR + a Nhost project (Auth+GraphQL) in production. Everything seems to be working just fine.
I assume that by "server components" you mean functions specified in We support functions (we call it custom API) written in JavaScript/TypeScript and the example app I built has no
Done. The build is failing because I still need to release a new version (currently in preview) of our SDK. I will do that during the weekend. Thank you again, really appreciate it. |
@thedavidprice @Tobbe just wanted to let you know that I have marked the PR as ready. An example app can be found here https://github.com/nhost-examples/nhost-redwoodjs and I will post something to the community forum soon depending on your feedback. |
@nunopato Great work! I'll try to take a look tonight. |
Could you also please write a PR for https://github.com/redwoodjs/redwoodjs.com/blob/main/docs/authentication.md, adding instructions for Nhost? And we also try to show off our auth implementations in our auth playground, so if you could get an example running there as well, that'd be great :) https://github.com/redwoodjs/playground-auth |
Ohh, and there's also README.md in the auth package. At the end there's a list of all providers, please add nhost there as well |
@Tobbe PRs for the playground and redwoodjs.com (docs) can be found here: https://github.com/redwoodjs/redwoodjs.com/pull/562 & redwoodjs/playground-auth#20. The README.md for the Auth package is also updated. Let me know if there is anything else missing. |
* Log In via a OAuth provider also registers the account in case it doesn't exist | ||
* @param options.email The user's email address | ||
* @param options.password The user's password | ||
* @param options.provider One of NhostProvider |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
* @param options.provider One of NhostProvider | |
* @param {NHostProvider} options.provider The authentication provider to use |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we could improve the typings here. I'm not 100% sure of this syntax, but maybe this would work: https://jsdoc.app/tags-typedef.html
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Also my comment for the type is lame.
Adding Nhost as an authentication provider:
authClient
This PR will be updated and finalized in the next couple of days since we have some minor work to do on our SDK.
Some relevant links if you want to know more about Nhost:
Feedback much appreciated!