nextjs 登陆
function authCallback (ctx, result) {
const expires = new Date();
expires.setDate(expires.getDate() + 1);
ctx.cookies.set(‘auth_info’, JSON.stringify(result), {
httpOnly: true,
domain: ‘www.vwood.xyz’...
原创
2020-02-17 11:41:18 ·
882 阅读 ·
0 评论