Skip to content

Instantly share code, notes, and snippets.

View Rohithv07's full-sized avatar
💭
If In Doubt, Always Run The Code....

Rohith V Rohithv07

💭
If In Doubt, Always Run The Code....
View GitHub Profile
@Rohithv07
Rohithv07 / auth.service.ts
Created August 3, 2021 13:41
Why my username displayed on the nav bar is not shown until I refresh the page again after I login.
import { HttpClient, HttpErrorResponse } from '@angular/common/http';
import { Injectable } from '@angular/core';
import { Router } from '@angular/router';
import { ReplaySubject, Subject, throwError } from 'rxjs';
import { catchError, tap } from 'rxjs/operators';
import { User } from './auth/user.model';
export interface AuthResponseData {
kind: string,
idToken: string,