login(idToken) {
        localStorage.setItem('id_token', idToken);

        if (this.getProfileType() === 'owner' || this.getProfileType() === 'admin') {
            window.location.assign('/ownerprofile');
        } else if (this.getProfileType() === 'walker') {
            window.location.assign('/walkerschedule');
        }
    }
// Saves user token to localStorage and performs login
Saves user token to localStorage and performs login
Saves user token to localStorage and performs login
login(idToken) {
        localStorage.setItem('id_token', idToken);
        if (this.getProfileType() === 'owner' || this.getProfileType() === 'admin') {
            window.location.assign('/ownerprofile');
        } else if (this.getProfileType() === 'walker') {
            window.location.assign('/walkerschedule');
        }
    }
login ( idToken ) { localStorage . setItem ( 'id_token' , idToken ) ; if ( this . getProfileType ( ) === 'owner' || this . getProfileType ( ) === 'admin' ) { window . location . assign ( '/ownerprofile' ) ; } else if ( this . getProfileType ( ) === 'walker' ) { window . location . assign ( '/walkerschedule' ) ; } }
Saves user token to localStorage and performs login
Saves user token to localStorage and performs login