Support the ongoing development of Laravel.io →
Authentication Security

Hi,

I have an API that is going to be used in a JS/React frontend and a Mobile App.

The JS part is configured and working with the CreateFreshApiToken middleware as described by the docs. The mobile part should work too, but I'm not finding any way to get a JWT token after Authenticating the user.

Is there any way to Grant Password Access Tokens for a particular user without the POST to '/oauth/token' (which unfortunately doesn't work because my "users" table is not the default one...).

Something like: \Auth::user()->getPasswordToken();

Thank you

Last updated 2 years ago.
0

Sign in to participate in this thread!

Eventy

Your banner here too?

joaojoyce joaojoyce Joined 23 Oct 2016

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2025 Laravel.io - All rights reserved.