about and social

I have two ways to authenticate users: facebook and email (classic). How can I enable a user authenticated with Facebook (by using a JWT with a parameter inside) and a middleware to detect this parameter and update the guard of Auth facade.
But there is something to set Auth :: user () (for example) on a certain class? (Instead of Auth :: guard ('facebook') everytime)?

Somebody already did that in API?

Thank you ^^

· · Web · 1 · 4 · 0

@Alyve Small question regarding this: have you used Laravel Sanctum for the JWT token? If yes, any feedbacks. 👀

Sign in to participate in the conversation

This service is offered by, visit our website to discover all the free services offered.
Beer, privacy and free software lovers. Join us!