Hi, I am a complete beginner, so please bear with me. I've created an application using Vue.js and Hasura (on Heroku), and have managed to implement basic queries and mutations. Now I also want to add the possibility for a user to sign up and log in / out.
I've read the documentation, and it seems quite complicated to me, and I don't really understand most of it. Do I really need to use something like Auth0 or Firebase Auth? Can I not handle this stuff in the Vue app itself? Is there an example of this anywhere?
Sorry if this isn't the correct place to ask this. I've been stuck with this problem a couple of days now, and learning all these new things is pretty overwhelming, and I haven't been able to find an answer to my questions elsewhere.
Welcome @oletakethewheel! Setting up auth might seem complex, but once you set it up for the first time everything is quite easy :)
We can guide you through the process of adding auth. Feel free to join us on our discord at: https://discord.gg/hasura where we have a channel for folks new to building apps/graphql etc.
Roughly, these are the steps for adding auth:
I would recommend following an auth0 tutorial and first getting basic auth working in your vue app. Once you have that feel free to ask us questions on our discord so that you get help you with the rest of the steps! Please don't worry about asking questions as a beginner, everyone's super friendly :)
Also, @vnovick is going to release a vuejs + hasura tutorial in a few days that will cover all of these issues and more so definitely watch out for that.
Thanks for the response @coco98!
The APIs that actually do the password check, create a user and so on are authentication APIs. You can build your own APIs for doing this or use auth0 / firebase. I would recommend using one of the 2.
I am mainly wanting to learn how to build my own API for doing this (using a provider seems overkill imo), which is the problem, as I don't really understand how to do this. I guess I can set it up with auth0 first and see if I want to change it afterwards or not.
Anyway, I will be looking forward to the tutorial and will join the Discord soon!
I'm also interested in this @coco98 and was wondering when and where @vnovick's tutorial will be released?
Guys you can slso use this repo:
https://github.com/elitan/hasura-backend-plus
I everyone 馃憢 just in case you haven't found @vnovick's Vue + Hasura tutorial yet, here it is: https://dev.to/hasurahq/vue-and-graphql-with-hasura-video-course-3mpp. I'm closing this issue now. Feel free to re-open should you have any more questions 馃檪
Most helpful comment
Welcome @oletakethewheel! Setting up auth might seem complex, but once you set it up for the first time everything is quite easy :)
We can guide you through the process of adding auth. Feel free to join us on our discord at: https://discord.gg/hasura where we have a channel for folks new to building apps/graphql etc.
Roughly, these are the steps for adding auth:
I would recommend following an auth0 tutorial and first getting basic auth working in your vue app. Once you have that feel free to ask us questions on our discord so that you get help you with the rest of the steps! Please don't worry about asking questions as a beginner, everyone's super friendly :)
Also, @vnovick is going to release a vuejs + hasura tutorial in a few days that will cover all of these issues and more so definitely watch out for that.