UNPKG

@pixelygroup/keycloak-koa-connect

Version:
20 lines 465 B
"use strict"; /** * Created by zhangsong on 2018/9/14. */ Object.defineProperty(exports, "__esModule", { value: true }); const bodyStore = { get(ctx) { if (!ctx.request.body || !ctx.request.body.jwt) { return; } const { jwt } = ctx.request.body; if (jwt) { return { access_token: jwt, }; } }, }; exports.default = bodyStore; //# sourceMappingURL=body-store.js.map