I tried to integrate into chatcraft and things got sad fast. My hacks are at tarasglek/chatcraft.org#775
Overall I like the wrapper approach of lastlogin a lot better. However integrating lastlogin alongside direct oauth implementations for google/github had the following issues
- Would be good to override
lastlogin_jwt cookie name or atleast have it exported
- Would be good to over-ride _auth/callback. Ideally i'd be able to set it to my /api/login route and have your lib match it by something like req.pathname == custom_callback && OAUTH_COOKIE is present && code param is set...so we reuse same route for request protected by lastlogin and lastlogin oauth flow
- Would be good to get other fields out of lastlogin like avatar, username
- Once we have above 1-3, then it would be cool to make this lib a generic oauth lib. It's so much better than any other auth lib i've seen.
Out of this list only 1, 2 are hurting me badly atm.
I tried to integrate into chatcraft and things got sad fast. My hacks are at tarasglek/chatcraft.org#775
Overall I like the wrapper approach of lastlogin a lot better. However integrating lastlogin alongside direct oauth implementations for google/github had the following issues
lastlogin_jwtcookie name or atleast have it exportedOut of this list only 1, 2 are hurting me badly atm.