title: LocalStorage.getItem('token) returns null
body: <p>In my code, I need to set the header authorization (Bearer + token), but when I print it, the bearer is null but there is a variable token exist in my localstorage</p>
  
  <p>code auth.services.ts</p>
  
  <pre class="lang-js prettyprint-override"><code>getToken() {
      const token = localStorage.getItem('token');
      console.log(token);
      return token;
    }
  </code></pre>
  
  <p>token-interceptor.ts</p>
  
  <pre class="lang-js prettyprint-override"><code>constructor(private authService: AuthService) { }
  
  intercept(req, next) {
  
    const tokenizeReq = req.clone({
      setHeaders: {
        authorization: `Bearer ${this.authService.getToken()}`
      }
    });
    return next.handle(tokenizeReq);
  }
  
  </code></pre>
  
  <p><strong>Outputs in console</strong></p>
  
  <p><a href="https://i.imgur.com/nxs7PTt.png" rel="nofollow noreferrer"><img src="https://i.imgur.com/nxs7PTt.png" alt="Outputs in console"></a></p>
  
  <p><strong>Network variables</strong></p>
  
  <p><img src="https://i.imgur.com/ryhtqQ8.png" alt="Network variables"></p>
  
  <p><strong>LocalStorage</strong>
  <img src="https://i.imgur.com/meKUewK.png" alt="LocalStorage"></p>
  
  <p>I don't know how to set null. Why is this happening</p>