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

ProductList/AddToCart: Navigate to Login, if not authorized. #3

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

ProductList/AddToCart: Navigate to Login, if not authorized. #3

wants to merge 2 commits into from

Conversation

aynur-safin
Copy link

An error occurs when trying to add an item to the cart if the user is not logged in.
The error occurs when trying to get JSON from the response:
var errors = await response.Content.ReadFromJsonAsync<string[]>();

@aynur-safin aynur-safin marked this pull request as ready for review October 1, 2020 21:53
Copy link

@jareksgit jareksgit left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Master should be pulled ;-)
Also await this.AuthState.GetAuthenticationStateAsync() could be used to get user auth state.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants