Skip to content
Discussion options

You must be logged in to vote

Hey @99michel99,

From what I understand there are multiple ways you could achieve this.

First a heads-up: Statamic's APIs (REST and GraphQL) don't offer built-in authentication right now. See here and here.

You could do your auth either on the backend (Statamic/Laravel) or a more frontend heavy approach in your Nuxt application. Depends on your preference.

With Laravel it's quite easy to come up with your own solution by leveraging it's great ecosystem of (first-party) packages, like Laravel Sanctum or Laravel Passport. Sanctum is a more lightweight solution and Passport a full-fledged OAuth2 server.

There is also the Nuxt Auth module that offers support for Laravel Sanctum, Laravel Passport

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@MichelJonkman
Comment options

Answer selected by joshuablum
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants