Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bad request with authservice.get() #8

Closed
mbsFactory opened this issue Mar 2, 2017 · 1 comment
Closed

Bad request with authservice.get() #8

mbsFactory opened this issue Mar 2, 2017 · 1 comment

Comments

@mbsFactory
Copy link

Hi,

why when I call the authservice.get() in ngOnInit event of app.component.ts I obtain a bad request?

How I can to obtain all information of current user?

ngOnInit() {
var auth = this.authService.getAuth();
alert(auth.access_token);
this.currentUser = this.authService.get().subscribe(
user => {
this.currentUser.UserName = user.UserName;
});
}

BR

@Darkseal
Copy link
Collaborator

Darkseal commented Apr 8, 2017

I cannot reproduce your error... Have you tried that using the GitHub source code without altering it in any way?

@Darkseal Darkseal closed this as completed Apr 8, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants