Jwt Authentication error Argument 3 passed to LcobucciJWTSignerHmac::doVerify()












1















I'm working on a project to learn laravel, I saw a couple of tutorials to use jwt auth in this. It was working good but now is show an error not always but I don't know why. this is it:




Argument 3 passed to LcobucciJWTSignerHmac::doVerify() must be an instance of LcobucciJWTSignerKey, null given, called in C:xampphtdocsinmobiliariavendorlcobuccijwtsrcSignerBaseSigner.php on line 42




Sometimes it works but not another. so I don't know what can I do. I tried with




  1. php artisan cache:clear

  2. php artisan config:clear

  3. php artisan jwt:secret


but the problem still there, sometimes i get good answer from server(200) but the most part of then al bad (500).



Screenshots



enter image description here



enter image description here










share|improve this question

























  • Can you show code where you're doing the authentication?

    – Peter Sowah
    Nov 19 '18 at 21:52











  • The authentication isn't the problem. This error appear when i try to make class::all(); method in php: public function all() { $properties = Property::with('images')->get(); return response()->json([ 'properties' => $properties ], 200); }

    – Esteban
    Nov 20 '18 at 22:05








  • 1





    Hi @Esteban, I have the same issue, did you find the solution?

    – Max M.
    Nov 27 '18 at 11:28











  • hi @MaxM. Actually no i don't, still looking!

    – Esteban
    Nov 28 '18 at 14:21











  • I have the same issue. Type error: Argument 3 passed to LcobucciJWTSignerHmac::doVerify() must be an instance of LcobucciJWTSignerKey, null given, called in vendorlcobuccijwtsrcSignerBaseSigner.php on line 42 It appears when I make many queries (some times it can be with similar params)

    – Oleksii.B
    Dec 17 '18 at 12:57
















1















I'm working on a project to learn laravel, I saw a couple of tutorials to use jwt auth in this. It was working good but now is show an error not always but I don't know why. this is it:




Argument 3 passed to LcobucciJWTSignerHmac::doVerify() must be an instance of LcobucciJWTSignerKey, null given, called in C:xampphtdocsinmobiliariavendorlcobuccijwtsrcSignerBaseSigner.php on line 42




Sometimes it works but not another. so I don't know what can I do. I tried with




  1. php artisan cache:clear

  2. php artisan config:clear

  3. php artisan jwt:secret


but the problem still there, sometimes i get good answer from server(200) but the most part of then al bad (500).



Screenshots



enter image description here



enter image description here










share|improve this question

























  • Can you show code where you're doing the authentication?

    – Peter Sowah
    Nov 19 '18 at 21:52











  • The authentication isn't the problem. This error appear when i try to make class::all(); method in php: public function all() { $properties = Property::with('images')->get(); return response()->json([ 'properties' => $properties ], 200); }

    – Esteban
    Nov 20 '18 at 22:05








  • 1





    Hi @Esteban, I have the same issue, did you find the solution?

    – Max M.
    Nov 27 '18 at 11:28











  • hi @MaxM. Actually no i don't, still looking!

    – Esteban
    Nov 28 '18 at 14:21











  • I have the same issue. Type error: Argument 3 passed to LcobucciJWTSignerHmac::doVerify() must be an instance of LcobucciJWTSignerKey, null given, called in vendorlcobuccijwtsrcSignerBaseSigner.php on line 42 It appears when I make many queries (some times it can be with similar params)

    – Oleksii.B
    Dec 17 '18 at 12:57














1












1








1








I'm working on a project to learn laravel, I saw a couple of tutorials to use jwt auth in this. It was working good but now is show an error not always but I don't know why. this is it:




Argument 3 passed to LcobucciJWTSignerHmac::doVerify() must be an instance of LcobucciJWTSignerKey, null given, called in C:xampphtdocsinmobiliariavendorlcobuccijwtsrcSignerBaseSigner.php on line 42




Sometimes it works but not another. so I don't know what can I do. I tried with




  1. php artisan cache:clear

  2. php artisan config:clear

  3. php artisan jwt:secret


but the problem still there, sometimes i get good answer from server(200) but the most part of then al bad (500).



Screenshots



enter image description here



enter image description here










share|improve this question
















I'm working on a project to learn laravel, I saw a couple of tutorials to use jwt auth in this. It was working good but now is show an error not always but I don't know why. this is it:




Argument 3 passed to LcobucciJWTSignerHmac::doVerify() must be an instance of LcobucciJWTSignerKey, null given, called in C:xampphtdocsinmobiliariavendorlcobuccijwtsrcSignerBaseSigner.php on line 42




Sometimes it works but not another. so I don't know what can I do. I tried with




  1. php artisan cache:clear

  2. php artisan config:clear

  3. php artisan jwt:secret


but the problem still there, sometimes i get good answer from server(200) but the most part of then al bad (500).



Screenshots



enter image description here



enter image description here







php laravel authentication jwt






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Nov 19 '18 at 21:44









Navarasu

1,9431821




1,9431821










asked Nov 19 '18 at 16:50









Esteban Esteban

63




63













  • Can you show code where you're doing the authentication?

    – Peter Sowah
    Nov 19 '18 at 21:52











  • The authentication isn't the problem. This error appear when i try to make class::all(); method in php: public function all() { $properties = Property::with('images')->get(); return response()->json([ 'properties' => $properties ], 200); }

    – Esteban
    Nov 20 '18 at 22:05








  • 1





    Hi @Esteban, I have the same issue, did you find the solution?

    – Max M.
    Nov 27 '18 at 11:28











  • hi @MaxM. Actually no i don't, still looking!

    – Esteban
    Nov 28 '18 at 14:21











  • I have the same issue. Type error: Argument 3 passed to LcobucciJWTSignerHmac::doVerify() must be an instance of LcobucciJWTSignerKey, null given, called in vendorlcobuccijwtsrcSignerBaseSigner.php on line 42 It appears when I make many queries (some times it can be with similar params)

    – Oleksii.B
    Dec 17 '18 at 12:57



















  • Can you show code where you're doing the authentication?

    – Peter Sowah
    Nov 19 '18 at 21:52











  • The authentication isn't the problem. This error appear when i try to make class::all(); method in php: public function all() { $properties = Property::with('images')->get(); return response()->json([ 'properties' => $properties ], 200); }

    – Esteban
    Nov 20 '18 at 22:05








  • 1





    Hi @Esteban, I have the same issue, did you find the solution?

    – Max M.
    Nov 27 '18 at 11:28











  • hi @MaxM. Actually no i don't, still looking!

    – Esteban
    Nov 28 '18 at 14:21











  • I have the same issue. Type error: Argument 3 passed to LcobucciJWTSignerHmac::doVerify() must be an instance of LcobucciJWTSignerKey, null given, called in vendorlcobuccijwtsrcSignerBaseSigner.php on line 42 It appears when I make many queries (some times it can be with similar params)

    – Oleksii.B
    Dec 17 '18 at 12:57

















Can you show code where you're doing the authentication?

– Peter Sowah
Nov 19 '18 at 21:52





Can you show code where you're doing the authentication?

– Peter Sowah
Nov 19 '18 at 21:52













The authentication isn't the problem. This error appear when i try to make class::all(); method in php: public function all() { $properties = Property::with('images')->get(); return response()->json([ 'properties' => $properties ], 200); }

– Esteban
Nov 20 '18 at 22:05







The authentication isn't the problem. This error appear when i try to make class::all(); method in php: public function all() { $properties = Property::with('images')->get(); return response()->json([ 'properties' => $properties ], 200); }

– Esteban
Nov 20 '18 at 22:05






1




1





Hi @Esteban, I have the same issue, did you find the solution?

– Max M.
Nov 27 '18 at 11:28





Hi @Esteban, I have the same issue, did you find the solution?

– Max M.
Nov 27 '18 at 11:28













hi @MaxM. Actually no i don't, still looking!

– Esteban
Nov 28 '18 at 14:21





hi @MaxM. Actually no i don't, still looking!

– Esteban
Nov 28 '18 at 14:21













I have the same issue. Type error: Argument 3 passed to LcobucciJWTSignerHmac::doVerify() must be an instance of LcobucciJWTSignerKey, null given, called in vendorlcobuccijwtsrcSignerBaseSigner.php on line 42 It appears when I make many queries (some times it can be with similar params)

– Oleksii.B
Dec 17 '18 at 12:57





I have the same issue. Type error: Argument 3 passed to LcobucciJWTSignerHmac::doVerify() must be an instance of LcobucciJWTSignerKey, null given, called in vendorlcobuccijwtsrcSignerBaseSigner.php on line 42 It appears when I make many queries (some times it can be with similar params)

– Oleksii.B
Dec 17 '18 at 12:57












1 Answer
1






active

oldest

votes


















0














In fact it's the right thing to solve it:



php artisan jwt:secret






share|improve this answer



















  • 1





    It does not work!

    – Esteban
    Dec 18 '18 at 13:08











  • What happen @Esteban?

    – Tiago Gouvêa
    Dec 19 '18 at 9:39











  • @Esteban make sure please you have 'secret' => env('JWT_SECRET'), and 'passphrase' => env('JWT_PASSPHRASE'), in your config/jwt.php

    – Kirill Oficerov
    Dec 22 '18 at 10:49













  • @Esteban on lumen I don't need the config/jwt.php file to work, when using tymon/jwt-auth package. On laravel it's really needed?

    – Tiago Gouvêa
    Jan 16 at 18:54











Your Answer






StackExchange.ifUsing("editor", function () {
StackExchange.using("externalEditor", function () {
StackExchange.using("snippets", function () {
StackExchange.snippets.init();
});
});
}, "code-snippets");

StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "1"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});

function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});


}
});














draft saved

draft discarded


















StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53379271%2fjwt-authentication-error-argument-3-passed-to-lcobucci-jwt-signer-hmacdoverify%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown

























1 Answer
1






active

oldest

votes








1 Answer
1






active

oldest

votes









active

oldest

votes






active

oldest

votes









0














In fact it's the right thing to solve it:



php artisan jwt:secret






share|improve this answer



















  • 1





    It does not work!

    – Esteban
    Dec 18 '18 at 13:08











  • What happen @Esteban?

    – Tiago Gouvêa
    Dec 19 '18 at 9:39











  • @Esteban make sure please you have 'secret' => env('JWT_SECRET'), and 'passphrase' => env('JWT_PASSPHRASE'), in your config/jwt.php

    – Kirill Oficerov
    Dec 22 '18 at 10:49













  • @Esteban on lumen I don't need the config/jwt.php file to work, when using tymon/jwt-auth package. On laravel it's really needed?

    – Tiago Gouvêa
    Jan 16 at 18:54
















0














In fact it's the right thing to solve it:



php artisan jwt:secret






share|improve this answer



















  • 1





    It does not work!

    – Esteban
    Dec 18 '18 at 13:08











  • What happen @Esteban?

    – Tiago Gouvêa
    Dec 19 '18 at 9:39











  • @Esteban make sure please you have 'secret' => env('JWT_SECRET'), and 'passphrase' => env('JWT_PASSPHRASE'), in your config/jwt.php

    – Kirill Oficerov
    Dec 22 '18 at 10:49













  • @Esteban on lumen I don't need the config/jwt.php file to work, when using tymon/jwt-auth package. On laravel it's really needed?

    – Tiago Gouvêa
    Jan 16 at 18:54














0












0








0







In fact it's the right thing to solve it:



php artisan jwt:secret






share|improve this answer













In fact it's the right thing to solve it:



php artisan jwt:secret







share|improve this answer












share|improve this answer



share|improve this answer










answered Dec 10 '18 at 10:49









Tiago GouvêaTiago Gouvêa

5,02413443




5,02413443








  • 1





    It does not work!

    – Esteban
    Dec 18 '18 at 13:08











  • What happen @Esteban?

    – Tiago Gouvêa
    Dec 19 '18 at 9:39











  • @Esteban make sure please you have 'secret' => env('JWT_SECRET'), and 'passphrase' => env('JWT_PASSPHRASE'), in your config/jwt.php

    – Kirill Oficerov
    Dec 22 '18 at 10:49













  • @Esteban on lumen I don't need the config/jwt.php file to work, when using tymon/jwt-auth package. On laravel it's really needed?

    – Tiago Gouvêa
    Jan 16 at 18:54














  • 1





    It does not work!

    – Esteban
    Dec 18 '18 at 13:08











  • What happen @Esteban?

    – Tiago Gouvêa
    Dec 19 '18 at 9:39











  • @Esteban make sure please you have 'secret' => env('JWT_SECRET'), and 'passphrase' => env('JWT_PASSPHRASE'), in your config/jwt.php

    – Kirill Oficerov
    Dec 22 '18 at 10:49













  • @Esteban on lumen I don't need the config/jwt.php file to work, when using tymon/jwt-auth package. On laravel it's really needed?

    – Tiago Gouvêa
    Jan 16 at 18:54








1




1





It does not work!

– Esteban
Dec 18 '18 at 13:08





It does not work!

– Esteban
Dec 18 '18 at 13:08













What happen @Esteban?

– Tiago Gouvêa
Dec 19 '18 at 9:39





What happen @Esteban?

– Tiago Gouvêa
Dec 19 '18 at 9:39













@Esteban make sure please you have 'secret' => env('JWT_SECRET'), and 'passphrase' => env('JWT_PASSPHRASE'), in your config/jwt.php

– Kirill Oficerov
Dec 22 '18 at 10:49







@Esteban make sure please you have 'secret' => env('JWT_SECRET'), and 'passphrase' => env('JWT_PASSPHRASE'), in your config/jwt.php

– Kirill Oficerov
Dec 22 '18 at 10:49















@Esteban on lumen I don't need the config/jwt.php file to work, when using tymon/jwt-auth package. On laravel it's really needed?

– Tiago Gouvêa
Jan 16 at 18:54





@Esteban on lumen I don't need the config/jwt.php file to work, when using tymon/jwt-auth package. On laravel it's really needed?

– Tiago Gouvêa
Jan 16 at 18:54


















draft saved

draft discarded




















































Thanks for contributing an answer to Stack Overflow!


  • Please be sure to answer the question. Provide details and share your research!

But avoid



  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.


To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53379271%2fjwt-authentication-error-argument-3-passed-to-lcobucci-jwt-signer-hmacdoverify%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

Biblatex bibliography style without URLs when DOI exists (in Overleaf with Zotero bibliography)

ComboBox Display Member on multiple fields

Is it possible to collect Nectar points via Trainline?