-
Notifications
You must be signed in to change notification settings - Fork 108
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
README.md Guidance on Use Case: Save User To Server After Registration #22
Comments
@keepforever I think you're right, I don't think there's a direct way to perform this workflow with
Then, you can include the I'm rather new to auth in general, so I'm definitely not an expert. I'd appreciate if someone else were to chime in as well. |
Great question @keepforever. The basic idea behind Auth0 and other auth providers like it, is that your server doesn't actually have user models. You're meant to leave that completely to the auth service. However, you do sometimes need to authenticate users on the backend and do things in their name. Auth0 provides functionality to do that. I've used this guide in the past: https://auth0.com/docs/application-auth/legacy/server-side-web You can see my code (before I had useAuth, but with Auth0) in this never-finished project: https://github.com/Swizec/threadcompiler.com Other than that, I would do what @puregarlic recommends. I'm about to release a version that exposes the user's |
@keepforever @puregarlic just published version 0.4.0, which exposes the full |
I was wondering if @Swizec, or anyone could offer any guidance as to how to persist a newly registered user on my server after "signup" via
Auth0
?Before integrating
useAuth
, I had a login form that would collect,name
,email
,password
,aboutMe
, etc, then, hit my GraphQL server, create a user entry in myUser
table, and return aJWT
for use in subsequent requests for editing properties in the user's model.I'm not seeing a clear path forward on doing something similar with
useAuth
. Is this not a good use case foruseAuth
?I think this would be a great addition to the examples folder if it is possible.
The text was updated successfully, but these errors were encountered: