Filament login using API
I want to use filament for my project without database. Instead, it will use external API to fetch the data. I know that I can use Sushi library to work with data models.
What I don't know how to do is login user using external API. I've managed to make the login work with Sushi, but I can't use
Filament::auth()->attempt()
.
I have extended authenticate method of Filament login page with this code:
This partially works but guards don't work any more. What is the correct way of doing this?1 Reply
I don't think that will work properly. I would suggest on successful authorisation to the API you update or create a user record within filament, on that you then login as that user.