-
Notifications
You must be signed in to change notification settings - Fork 926
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
NuxtServerError with Laravel.passport callback #505
Comments
Me too!! {
"error": {
"message": "unable to verify the first certificate",
"name": "NuxtServerError",
"frames": [
{
"file": "_tls_wrap.js",
"method": "TLSSocket.onConnectSecure",
"line": 1475,
"column": 34,
"context": {},
"lang": "js"
},
{
"file": "events.js",
"method": "TLSSocket.emit",
"line": 321,
"column": 20,
"context": {},
"lang": "js"
},
{
"file": "domain.js",
"method": "TLSSocket.EventEmitter.emit",
"line": 485,
"column": 12,
"context": {},
"lang": "js"
},
{
"file": "_tls_wrap.js",
"method": "TLSSocket._finishInit",
"line": 918,
"column": 8,
"context": {},
"lang": "js"
},
{
"file": "_tls_wrap.js",
"method": "TLSWrap.ssl.onhandshakedone",
"line": 688,
"column": 12,
"context": {},
"lang": "js"
}
]
},
"hasInternal": false
} |
I have the same problem, anyone has a solution to fix it ? I'm using Laravel 7.3 with Passport and Nuxt in SPA mode.
|
Hi @devondahon! I made some tests using Laravel Passport and this error means that Laravel couldn't issue the token. The error message is Are you using the client generated by You should run |
If I do that, I get the following error in Laravel right after logging in:
|
Hi @devondahon! If I'm not wrong, this error is because your callback route is not matching. I see that you set callback to
|
Thanks a lot ! It works :D |
I'm so happy to know it worked!! 😃 |
If I want to make any other request to this backend, I just need to send the token in the Bearer or is there a safer way to make a request ? Also, is it using CORS ? Should I pass CORS stuffs in the request as well ? |
The access token is automatically added to your And yes, it is using CORS. But you just need to configure |
Note: Refresh tokens aren't supported yet. We are working on this feature in dev branch. So if you need to refresh tokens, then add You can see the new docs at https://dev.auth.nuxtjs.org/ |
Great! Thank you very much!! |
@JoaoPedroAS51
How to set Nuxt authentication and Laravel settings to use |
Actually, what I would need is to use a password grant token, but I've read on stackoverflow that it's insecure. There's use case on dev.to but the author doesn't use Nuxt Auth module because he think it's not flexible enough. @JoaoPedroAS51 |
My problem is that I get a 404 with http://127.0.0.1:3000/_auth/oauth/laravel.passport/authorize. This only happens after deploying with Any help would be appreciated. |
@JoaoPedroAS51 |
Closing here, as this is an old issue and has already been answered. |
the problem still there ,"Method Illuminate\Auth\RequestGuard::attempt does not exist. if use session the api token does not work |
did you find any solution to this issue? @mviljoen |
Version
v4.8.4
Reproduction link
https://codepen.io/pcasaspere/pen/mdymJxW
Steps to reproduce
Version
4.8.4
Steps to reproduce
code
in url's query.http://127.0.0.1:3000/_auth/oauth/laravel.passport/authorize
The text was updated successfully, but these errors were encountered: