2017-04-15 31 views
0

使用最新的feathers-authentication-client和feathers-authentication-local在cookie中存儲jwt token的正確方法是什麼?以feathers-authentication-local身份登錄的正確方式是什麼,但將cookie存儲在jwt中?

找不到任何文檔。使用以下代碼管理它在localStorage中的工作,但更喜歡將它存儲在cookie中,比如羽毛 - 認證 - oauth2。

const host = 'http://localhost:3030'; 
export const app = feathers() 
    .configure(rest(host).superagent(superagent)) 
    .configure(feathers.hooks()) 
    .configure(auth({ 
    storage: localStorage, 
    type: 'jwt', 
    })); 

感謝

回答

相關問題