Skip to content

Session based auth errors #31

@EnelKyss

Description

@EnelKyss
  1. When switching to session based auth, using other oauth than built in isnt working very well, I had to move the oauth handler routes to web.php so it doesnt use the api middleware, otherwise, the backend always thinks I am not authenticated. (I even had in .env AUTH_GUARD=web)
  2. When using ssr: log out doesnt work properly... it does call the backend logout function, but only overwrite loggedCookie in the browser and not in the server js (ssr) so in the server side, it will always think it is logged in, eventhough the session has been deleted, so it throws error, because trying to auth user without session leads to corrupted frontend

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions