-
Notifications
You must be signed in to change notification settings - Fork 45
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Saving context in application is an anti-pattern #43
Comments
Or probably, use |
|
I'm a little confused, then what's this for? egg-oauth2-server/lib/server.js Line 77 in 2d10b76
If creating a new instance every time when a request comes is a bad approach, maybe you shouldn't have made |
I found this PR oauthjs/node-oauth2-server#462 |
Has the problem been solved? |
I found on some occasions, the Model being instantiated with the last request context, then I found this:
egg-oauth2-server/lib/server.js
Line 86 in 2d10b76
You should never save
ctx
inapplication
ever. This is my fix:The text was updated successfully, but these errors were encountered: