v4.5.3
None
Add a login button and call a login function that user loginWith(...)
I don't want to have the expected behavior which is redirecting after login, in my case Im using facebook. How can I make the process completely async?
Redirect to strategy page and comeback to to redirect url.
This issue as been imported as question since it does not respect auth-module issue template. Only bug reports and feature requests stays open to reduce maintainers workload.
If your issue is not a question, please mention the repo admin or moderator to change its type and it will be re-opened automatically.
Your question is available at https://cmty.app/nuxt/auth-module/issues/c269.
Hi,
in your nuxt.config.js add an option home to false
auth: {
redirect: {
callback: "/callback",
home: false
},
Bye
@kaboume
I tried this but no luck. Any idea?
auth: {
strategies: {
facebook: {
client_id: 'CLIENT_ID',
userinfo_endpoint: false,
scope: ['public_profile', 'email'],
redirect_uri:'https://my-domain.com/callbak'
},
google: {
client_id: 'CLIENT_ID,
user:false,
redirect_uri:'https://my-domain.com/callbak'
},
redirect: {
callback: "/callback",
home: false
},
},
},
It still redirect the user to facebook/google login page.
Most helpful comment
Hi,
in your nuxt.config.js add an option home to false
auth: {
redirect: {
callback: "/callback",
home: false
},
Bye