You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on May 17, 2019. It is now read-only.
Other koa middlewares (For Eg. koa-passport) , which work with sessions, expect session to be exposed at ctx.session as a plain key-val object. but the JWTSession exposed by this plugin exposes session ONLY as a plugin service, making it impossible to integrate transparently with other koa-middlewares that work with sessions.
Type of issue
Feature Request
Description
When using this plugin as Session Provider in fusion app, any koa-middleware should be able to transparently use it just as if its koa's session (For Eg. koa-session)
Basic requirements for that would be to
Expose session object in context at ctx.session
session should allow access like plain object and should not mandate usage of get and set methods for working with values in session.
Current behavior
Session can only be accessed by creating a fusion plugin and declaring dependency on JWTSession.
Miidlewares written for koa with no consideration of fusion can not access session as these libraries expect session to be exposes as property on context object.
Expected behavior
koa-middlewares should be able to access session via context, For Eg. ctx.session
Other koa middlewares (For Eg. koa-passport) , which work with sessions, expect
sessionto be exposed atctx.sessionas a plain key-val object. but the JWTSession exposed by this plugin exposes session ONLY as a plugin service, making it impossible to integrate transparently with other koa-middlewares that work with sessions.Type of issue
Feature Request
Description
When using this plugin as Session Provider in fusion app, any koa-middleware should be able to transparently use it just as if its koa's session (For Eg.
koa-session)Basic requirements for that would be to
ctx.sessiongetandsetmethods for working with values in session.Current behavior
Session can only be accessed by creating a fusion plugin and declaring dependency on JWTSession.
Miidlewares written for koa with no consideration of fusion can not access session as these libraries expect session to be exposes as property on context object.
Expected behavior
koa-middlewares should be able to access session via context, For Eg.
ctx.sessionSteps to reproduce
NA
Your environment
NA