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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

馃悰 fixed #569 #570

Merged
merged 1 commit into from
Dec 18, 2023
Merged

馃悰 fixed #569 #570

merged 1 commit into from
Dec 18, 2023

Conversation

neozhu
Copy link
Owner

@neozhu neozhu commented Dec 18, 2023

No description provided.

@neozhu neozhu merged commit d6e8d10 into main Dec 18, 2023
2 checks passed
@neozhu neozhu deleted the fixhomepageredirect branch December 18, 2023 05:03
@rwxzig
Copy link

rwxzig commented Dec 18, 2023

The problem still persists, but maybe it has to do with the fact that I am using InMemoryDatabase for development.

@neozhu
Copy link
Owner Author

neozhu commented Dec 18, 2023

The problem still persists, but maybe it has to do with the fact that I am using InMemoryDatabase for development.

Your issue is expected when using InMemoryDatabase, as it resets data each time you restart your application. This means every new session has different users, so tokens saved from a previous session won't match and can't be validated."

@Bram1903
Copy link
Collaborator

Hello @cptzig,

The in-memory database has many issues, which is even stated by Microsoft themselves, however we only have support for it for demo purposes. It would help if you used an actual database for development or production purposes, since otherwise, many odd errors will occur. If you don't have access to any external database, I recommend you set up a docker container hosting either a Microsoft SQL Server database or a Postgresql database.

Once Docker is installed you open up a terminal and execute the following example command in this case for PostgreSQL:

docker run --name CleanArchitecture -e POSTGRES_DB='BlazorDashboardDb' -e POSTGRES_USER='postgres' -e POSTGRES_PASSWORD='postgrespw' -d --restart always -p 5432:5432 postgres

I hope this helps!

Kind regards,
Bram

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.

None yet

3 participants