@nunodonato middleware('auth:guard1,guard2')
Sep 19, 2022
4
Level 2
Multiple authentication types in the same API?
Hi all
I have an app with an API using the default token-based authentication that comes with Laravel (no sanctum/passport). Right now there's a need to add JWT support to it, but without replacing what already works. So basically I need the same routes to support two different authentication mechanisms.
Any tips or advice on how to proceed and pitfalls to avoid? thanks in advance.
Please or to participate in this conversation.