Replies: 2 comments 2 replies
-
@Zignature I haven't tested this but I think what you need to do is setup a new Auth guard that uses So in your Laravel app's
And then to create your user endpoint it would look something like this in your
If I get some time I'll try to setup Sanctum and test this out but maybe someone with more experience will chime in before then :-) |
Beta Was this translation helpful? Give feedback.
-
@Zignature I went through getting setup with Sanctum and wrote a guide here - https://expressionengine.github.io/coilpack-docs/docs/guides/using-laravel-sanctum would you mind reviewing that for me and let me know if anything doesn't make sense or line up with your use case? I think Sanctum is a great choice for what you're looking to do, hopefully this helps get you going! |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi folks,
I have a Nuxt app that uses GraphQL to consume the data from my EE backend. The app is not supposed to be publicly accessible, so I need authentication.
Eventually I'd like to build a CRUD app for the EE backend.
Being a novice when it comes to Nuxt and certainly when it comes to Laravel and Coilpack, I could use help setting up Auth in my Nuxt app. I can't see the forest for the trees.
I only want to use ExpressionEngine authentication, so it is clear to me I have to set
coilpack
as the default authentication guard.I will be using nuxt-auth-sanctum.
What is the endpoint to query for the user?
Any help would be greatly appreciated.
Beta Was this translation helpful? Give feedback.
All reactions