gothinkster/angular-realworld-example-app

Switch auth to session/cookie based

Closed this issue · 2 comments

What changes I need to do to work with cookies instead of jwt?
In the code, I saw a populate() method in user.service.ts that checks the localStorage for a token and then calls a get query to /user to fetch the current user data. IMO I only need to remove the jwt check and leave the query call, but I don't know.

How did you decide this?

I didn't work anymore with this example 😞
Anyway, I can help you, what is your doubt?