我使用everyauth,並且無法通過github進行身份驗證。看起來我到目前爲止所遵循的所有步驟都是正確的,但當點擊「connect with github」鏈接時,它會一直告訴我它cannot GET /auth/github
。通過Github進行身份驗證(使用everyauth)
這裏是我的代碼一個要點:https://gist.github.com/2641260
任何幫助將不勝感激!
我使用everyauth,並且無法通過github進行身份驗證。看起來我到目前爲止所遵循的所有步驟都是正確的,但當點擊「connect with github」鏈接時,它會一直告訴我它cannot GET /auth/github
。通過Github進行身份驗證(使用everyauth)
這裏是我的代碼一個要點:https://gist.github.com/2641260
任何幫助將不勝感激!
不知道這是否會幫助,但你有沒有嘗試添加「.entryPath」可鏈式參數?
everyauth.github
.entryPath('/auth/github')
.appId("APP_ID")
.appSecret("APP_SECRET")
.findOrCreateUser(function (sess, accessToken, accessTokenExtra, ghUser) {
console.log('find user')
// return usersByGhId[ghUser.id] || (usersByGhId[ghUser.id] = addUser('github', ghUser));
})
.redirectPath('/');
感謝您的時間,@steve,但遺憾的是沒有幫助。不過,我很感激! – Connor
鏈接已損壞。 –