@evo/concierge-koa
TypeScript icon, indicating that this package has built-in type declarations

0.0.16 • Public • Published

Concierge-koa

Koa-based JS client library for Concierge service

installation

npm install --save @evo/concierge-koa

usage

import { conciergeAuthMiddleware } from "concierge-koa";

const app: Koa = new Koa();

app.use(conciergeAuthMiddleware);

Now you can access it in a Koa context

app.use(async (ctx: Koa.BaseContext, next: any) => {
    console.log(ctx.conciergeUser);
    /**
     * prints ->
     *  ConciergeUserInfo {
            userId: 'user_id_1',
            profile: Map { 'email' => 'user_id_1@example.com' },
            accessToken: 'user_1',
            meta: { services_meta: { project: 'uaprom' } }
        }
    */

    await next();
})

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
0.0.162latest

Version History

VersionDownloads (Last 7 Days)Published
0.0.162
0.0.150
0.0.140
0.0.130
0.0.120
0.0.111
0.0.90
0.0.80
0.0.70
0.0.60
0.0.50
0.0.40
0.0.31
0.0.20

Package Sidebar

Install

npm i @evo/concierge-koa

Weekly Downloads

4

Version

0.0.16

License

ISC

Unpacked Size

31.5 kB

Total Files

18

Last publish

Collaborators

  • stoyanovk
  • lequan
  • zemlanin
  • alexander
  • seedofjoy
  • 041616
  • docccdev
  • orhideous
  • tailhook
  • hunson.abadeer
  • mark_tven
  • amostovenko
  • sadkovoy
  • himiranov
  • evo-kazymyrov