i'm getting started with angular 4. Now i try an authentication with oauth.
If the credentials are right, the server sends the token to the client.
Now i save it to the localstorage:
localStorage.setItem('currentUser', data.access_token);
The authguard checks
if (localStorage.getItem('currentUser')) {
Is this secure? Or are there further steps necessary?