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

Getting weird response token #9

Closed
NetanelBasal opened this issue Oct 30, 2014 · 3 comments
Closed

Getting weird response token #9

NetanelBasal opened this issue Oct 30, 2014 · 3 comments

Comments

@NetanelBasal
Copy link

hey when im trying to do this:
public function postLogin()
{
$credentials = Input::only('email', 'password');

    if ( ! $token = JWTAuth::attempt($credentials) )
    {
        // return 401 error response
    }

    return Response::json(compact('token'));
}

the respone that i get is this:
php artisan jwt:generate{"token":"eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwOlwvXC9sb2NhbGhvc3RcL2FuZ3VMYXJhdmVsJTIwYm9pbGVycGxhdGVcL3B1YmxpY1wvYXV0aFwvbG9naW4iLCJzdWIiOjMsImlhdCI6MTQxNDY2NzgxMywiZXhwIjoxNDE0NzU0MjEzfQ.bv5C1S67EkifKD_LOKElaow9F1Vmoy3muw0rGyh3iFc"}

from where the php artisan coming!?

@tymondesigns
Copy link
Owner

Hmm.. The only thing I can think of is it that you may have pasted that in accidentally somewhere? Maybe search your codebase for php artisan jwt:generate and see what comes up

@NetanelBasal
Copy link
Author

yes he was it in my config im sorry for that, thanks!

@NetanelBasal
Copy link
Author

delete this issue

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

No branches or pull requests

2 participants