mevdschee / mevdschee/php-crud-api

Regression: GET /me returns 401 when user is authenticated via 'dbAuth' middleware

Open
#959 8 comments 1 reaction 1 assignee View on GitHub

@mevdschee is already working on this.

Since Feb 22, 2023.

bug
Dominant language
PHP
Stars
3.7k
Forks
1k
Avg merge
1h 55m
Merged PRs (30d)
7

Description

Regression issue found in PHP API v.2.14.19 and not reproducible in at least 2.14.10.

An existing project which uses the 'dbAuth' authentication middleware now reports a 401 with error code 1011 when a user is logged in and makes a request to the '/me' endpoint. Issue was observed when upgrading to API v.2.14.19. Previously, GET /me would return a 200 for logged-in users.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.