최신 깃털 - 인증 - 클라이언트 및 깃털 인증 로컬을 사용하여 쿠키에 jwt 토큰을 저장하는 올바른 방법은 무엇입니까?feathers-authentication-local로 로그인하지만 jwt를 쿠키에 저장하는 올바른 방법은 무엇입니까?
문서를 찾을 수 없습니다. 이 코드는 localStorage에서 다음 코드를 사용하여 작동하지만 feathers-authenticaion-oauth2와 같은 쿠키 내에 저장하는 것이 좋습니다.
const host = 'http://localhost:3030';
export const app = feathers()
.configure(rest(host).superagent(superagent))
.configure(feathers.hooks())
.configure(auth({
storage: localStorage,
type: 'jwt',
}));
감사