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’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Using Passport API not working returing false everytime #199

Open
pankajsondagar opened this issue Apr 8, 2024 · 1 comment
Open

Using Passport API not working returing false everytime #199

pankajsondagar opened this issue Apr 8, 2024 · 1 comment

Comments

@pankajsondagar
Copy link

pankajsondagar commented Apr 8, 2024

$customer = User::find($request->userId);

$data = Auth::user()->impersonate($customer);

Is there any way to make it working in API's?

@jose123v
Copy link

jose123v commented May 9, 2024

Maybe #183 (comment)

TokenGuard is Macroable
laravel/passport/Guards/TokenGuard.php#L28-L30

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants