Meteor facebook login redirect doesn't work

家住魔仙堡 提交于 2020-01-26 03:12:20

问题


i'm using angular2 with meteor.

ServiceConfiguration.configurations.insert({
    service: "facebook",
    appId: 'myappID',
    loginStyle: "redirect",
    secret: 'mysecret',
    redirectUrl: 'http://localhost:3000/landing'
});

after logging in it always goes back to the home page. (localhost:3000)

my router code:

export const routes: Route[] = [
   { path: '', component: PartiesListComponent },
   { path: 'login', component: LoginComponent },
   { path: 'profile', component: ProfileComponent },
   { path: 'landing', component: LandingComponent }
    .....

来源:https://stackoverflow.com/questions/42741946/meteor-facebook-login-redirect-doesnt-work

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!