问题
Any idea on how to implement cookie auth in Angular 6? I have tried using AuthGuard but I'm not able to check if the user is authenticated or not because the cookie is HttpOnly so I can't access its content. I need this to protect some routes.
Thanks!!!
回答1:
with JWT you should save the token, you must kepp the key in the cookie.
来源:https://stackoverflow.com/questions/52874219/angular-6-auth-using-cookies