Skip to content

Issue when use multi auth #1604

@michaelnabil230

Description

@michaelnabil230
  • Passport Version: 11.3
  • Laravel Version: 9.19
  • PHP Version: 8.1.13

Description:

I have a problem when I create multiple authentications.

When I visit one of the links that have the user's authority and I make sure if this user is an admin or user using auth()->check() gives the result that the admin is true, although the token used in the request is a user's token, not an admin

I followed the instructions in the package's docs but to no avail.

I was done creating a unit test to try this point only.

Steps To Reproduce:

https://github.com/michaelnabil230/laravel-passport-issue

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions