Skip to content

Comments

jwt驗證部分移植到policies裡、解決問題"regeneratorRuntime is not defined."#1

Open
93i7xo2 wants to merge 3 commits intozzpengg:masterfrom
93i7xo2:master
Open

jwt驗證部分移植到policies裡、解決問題"regeneratorRuntime is not defined."#1
93i7xo2 wants to merge 3 commits intozzpengg:masterfrom
93i7xo2:master

Conversation

@93i7xo2
Copy link

@93i7xo2 93i7xo2 commented May 3, 2017

No description provided.

93i7xo2 added 2 commits May 3, 2017 12:06
解決方法:增加套件babel-plugin-transform-regenerator & Babel polyfill,新增config/babel.js以啟用babel-polyfill
參考資料:https://babeljs.io/docs/plugins/transform-regenerator/
// })

try {
let decode=res.locals.decoded;
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

應該是decoded = res.locals.decoded??

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

沒錯,沒複製到d...

})
})

index: function (req, res) {
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

縮排好怪

Copy link
Author

@93i7xo2 93i7xo2 May 7, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

vscode的內建格式化:)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants