Authentication advice needed.
Answered
French Spaniel posted this in #help-forum
French SpanielOP
So, I am trying to implement authentication in my project. I was looking into luciaJs but got to know, it is going to be deprecated. But will be instead a learning resource, so what do you suggest. Learning from lucia and buildig my own auth or using Iron session approach. And the last the full Auth.Js library. Will using lucia and making my own auth for real world production application be a bad choice.
Answered by French Spaniel
So, In the end I went with iron session library, it's great to work with. If anyone don't want to use authJs, iron session is really good for simple authentication. But I also recommend luciaJs, because I actually implemented auth using iron session by following Lucia guide, the only difference is Lucia stores session in database while iron session does not. In my opinion Lucia is better if you have time to implement authentication. But Iron session is totally fine too.
4 Replies
Barbary Lion
@French Spaniel What about nextauth?
French SpanielOP
@Barbary Lion I have heard nextAuth is slow, it has bugs and it comes with quit a lot of baggage.
French SpanielOP
So, In the end I went with iron session library, it's great to work with. If anyone don't want to use authJs, iron session is really good for simple authentication. But I also recommend luciaJs, because I actually implemented auth using iron session by following Lucia guide, the only difference is Lucia stores session in database while iron session does not. In my opinion Lucia is better if you have time to implement authentication. But Iron session is totally fine too.
Answer