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 ^^
@Alyve Small question regarding this: have you used Laravel Sanctum for the JWT token? If yes, any feedbacks. 👀
This service is offered by hostux.net, visit our website to discover all the free services offered.
Beer, privacy and free software lovers. Join us!