faisalsharif's avatar

CSRF Token in Lumen 5.4

Hi All, i am new in Lumen, i was read why Lumen 5.4 not supported CSRF token as they have classes support in Lumen 5.1 , should i down grade to Lumen 5.1 ?

0 likes
6 replies
davorminchorov's avatar

No, you shouldn't.

Lumen is mainly used for RESTful APIs since Lumen 5.2, so the views functionality was removed.

CSRF tokens are used in a session based traditional application while the RESTful APIs are stateless and do not use sessions.

2 likes
faisalsharif's avatar

Thanks Ruffles , i appreciated , so what will be the best option of Restfull Api Authentication , Lumen Authentication Documentation not providing a detail

faisalsharif's avatar

Ruffles sorry disturbing you , JWT Auth package have only guide for Laravel , how i configure in Lumen 5.4

thanks in advance

Please or to participate in this conversation.