GraphQL Authentication in Laravel w/ Lighthouse & Passport

preview_player
Показать описание
We take a look at how to do GraphQL Authentication in Laravel with the Lighthouse Package and Passport. We review how token based authentication works in Laravel Passport then make use of a Lighthouse plugin to do it in GraphQL.

# LINKS
Рекомендации по теме
Комментарии
Автор

This is a great playlist! Loving your channel, and the fact that it's something different to the usual "make a to-do-list" CRUD, or make a front end but with a random API that doesn't actually store data! Keep up the great work!

NathanBudd
Автор

Nice tutorial! Question, do you have an example for Sanctum?

dbybanez
Автор

Very nice playlist man. Keep up the good work. Thanks

nightkiller
Автор

Great video, thanks but I've a question, is this package ' support Lumen version 8?

bensaadrayen
Автор

So... Passport, Sanctum and Fortify are used almost 100% of times for a SPA + API project, right?

josuebarros-desenvolvedorw
Автор

Hi andre, I have a question: Should the refresh token return user information too ? many thanks

MrFranciscoooooo
Автор

Wonderful video! Thanks a lot!

Do you intend to teach us how to use GraphQL with Nuxt and Laravel also?

joshbarros
Автор

How did you do the login query? Im a bit confuse

kevinpallado
Автор

Hey Andre, i did all of that and its working fine, but when i migrate:fresh --seed and generate new keys, requeste resturn the token fine but when i try to return the user info with that token an error popup
"message": "Target class does not exist.",

rosalialive
Автор

hello, can you do a video on laravel graphql subscription

muhsinzyne
Автор

In my case, i tried this and saw "Schema is not configured for mutations." but then i went to the schema config and changed the schema path to from base_path('graphql/schema.graphql'), but i again got the error saying "error": "Unexpected token < in JSON at position 0". What am i doing wrong? P.S. i am using lighthouse v3.4 and v1.2. @Andre

subinshakya
Автор


Is there additional configuration I have to do for user data? My seeded user data includes name, email and password the rest of the fields are null.

eriknelson
Автор

Hi, firstly, thank for video. After watching video, i try it and see: "message": "Schema is not configured for mutations.",
"extensions": {
"category": "graphql"
}, when try mutation login. Can you help me?

VuNguyen-ljus
Автор

Thanks for it! However, you should not expose client secret.

aArcziMetin