Skip to content

Conversation

@matheusandre1
Copy link
Contributor

#50

The issue would be that, but it also has something to do with... #36.
We have to see how the problems, when solved, complement each other, because on the back-end SignInResponse has the token, the ID, etc., while on the front-end, it only has the token. In the local storage part, okay, it might work, but there could be some security problem in that part, which I wouldn't know how to identify at the moment.

Copy link
Owner

@mcruzdev mcruzdev left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks again @matheusandre1, for your great effort and collaboration.

I left an important comment.

constructor(private readonly router: Router) {}

private isLogged(): boolean {
return localStorage.getItem(timelessLocalStorageKey) != null;
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @matheusandre1, we have a problem here, we can easily set a key with the same name in the localStorage and this code will return true.

Let's verify if the token is valid in the backend, WDYT?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants