Login epic game store gives an error and launching the app crashes

When trying to log in to EGS, lutris opens a pop-up window stating this error.

The error text in the image above: Login error
If I try to log in to EGS again, the same error is displayed.

After the first login attempt, the EGS runner appears, but it crashes when I run it.
The terminal log: lutris -d log

Hello @hecto600

Try the method that I have posted in epic-game-store-update-failed

These are the exact same errors I was getting when installing a fresh install of epic launcher. It seems like there is some kind of permission issue when it tries to verify the self-update.

Tried the method mentioned but still crashes. EGS log

Never mind, after I restarted the computer it works now. Thanks!