{"_id":"@4geit/swg-get-user-with-api-token-helper","_rev":"10-367bfcb812ff50e2a0b465fd8e48675a","name":"@4geit/swg-get-user-with-api-token-helper","description":"return an account that matches the passed api token","dist-tags":{"latest":"1.28.0"},"versions":{"1.0.0":{"name":"@4geit/swg-get-user-with-api-token-helper","version":"1.0.0","description":"return an account that matches the passed api token","main":"index.js","scripts":{"test":"mocha **/*.spec.js","test:watch":"mocha **/*.spec.js --watch"},"repository":{"type":"git","url":"git@gitlab.com:4geit/swagger/swg-get-user-with-api-token-helper.git"},"bugs":{"url":"https://gitlab.com/4geit/swagger/swg-get-user-with-api-token-helper/issues"},"homepage":"https://gitlab.com/4geit/swagger/swg-get-user-with-api-token-helper#README","keywords":[],"author":{"name":"Caner","email":"caner@candan.fr"},"license":"MIT","devDependencies":{"mocha":"^3.x"},"_id":"@4geit/swg-get-user-with-api-token-helper@1.0.0","gitHead":"0e1e412ed67b71d92b32935346280d7443ca0fc9","_npmVersion":"5.0.3","_nodeVersion":"8.1.1","_npmUser":{"name":"canercandan","email":"caner@candan.fr"},"dist":{"integrity":"sha512-0823n9vBE/Mxoyyu8Hd2C1oOslBmEAyqrwB0o0NrmK39NYSSPuLWKF0hFPMEkcIL9uh7KZcolJaq+TPokUR6Lg==","shasum":"ff18f3da6690a203a81dadbd34ac76252e050a31","tarball":"https://registry.npmjs.org/@4geit/swg-get-user-with-api-token-helper/-/swg-get-user-with-api-token-helper-1.0.0.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIBGhFzMqg5SfJ5yGLCPeagXU2lMxR3L8yj4h/QE1EnXeAiEAzJzgGeiyQrDgwwI1zv0sDJHFuxHi1PmxdzCTm6K9MIo="}]},"maintainers":[{"name":"canercandan","email":"caner@candan.fr"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/swg-get-user-with-api-token-helper-1.0.0.tgz_1499210999111_0.6491032040212303"}},"1.1.0":{"name":"@4geit/swg-get-user-with-api-token-helper","version":"1.1.0","description":"return an account that matches the passed api token","main":"index.js","scripts":{"test":"mocha **/*.spec.js","test:watch":"mocha **/*.spec.js --watch"},"repository":{"type":"git","url":"git@gitlab.com:4geit/swagger/swg-get-user-with-api-token-helper.git"},"bugs":{"url":"https://gitlab.com/4geit/swagger/swg-get-user-with-api-token-helper/issues"},"homepage":"https://gitlab.com/4geit/swagger/swg-get-user-with-api-token-helper#README","keywords":[],"author":{"name":"Caner","email":"caner@candan.fr"},"license":"MIT","devDependencies":{"mocha":"^3.x"},"_id":"@4geit/swg-get-user-with-api-token-helper@1.1.0","gitHead":"526c573684b6bdb7199ee71e0d04fbfa61043394","_npmVersion":"5.0.3","_nodeVersion":"8.1.1","_npmUser":{"name":"canercandan","email":"caner@candan.fr"},"dist":{"integrity":"sha512-AaXjzurnP1tECyFw9ABnn/lfVIxWbLb3tsTjjmKw9muzMbf/Llsua+STmQyPlz5dd0zllDXD7A+vzMam707vxw==","shasum":"9f2aea6e2ad9021787b5a502fd45e8116194dd00","tarball":"https://registry.npmjs.org/@4geit/swg-get-user-with-api-token-helper/-/swg-get-user-with-api-token-helper-1.1.0.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQC2Ft+ygGUDW57FXtn0GgLs0AGf1aZtYZDSoQ2jKm/GYQIhAJ9GcsFT7kYHdL5ShfFNummZuyKLySKgOlxBxb+p/xGR"}]},"maintainers":[{"name":"canercandan","email":"caner@candan.fr"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/swg-get-user-with-api-token-helper-1.1.0.tgz_1499211551180_0.5190909840166569"}},"1.2.0":{"name":"@4geit/swg-get-user-with-api-token-helper","version":"1.2.0","description":"return an account that matches the passed api token","main":"index.js","scripts":{"test":"mocha **/*.spec.js","test:watch":"mocha **/*.spec.js --watch"},"repository":{"type":"git","url":"git@gitlab.com:4geit/swagger/swg-get-user-with-api-token-helper.git"},"bugs":{"url":"https://gitlab.com/4geit/swagger/swg-get-user-with-api-token-helper/issues"},"homepage":"https://gitlab.com/4geit/swagger/swg-get-user-with-api-token-helper#README","keywords":[],"author":{"name":"Caner","email":"caner@candan.fr"},"license":"MIT","devDependencies":{"mocha":"^3.x"},"_id":"@4geit/swg-get-user-with-api-token-helper@1.2.0","gitHead":"ad602f4897a09b24e01b4b37d0903e6796ceffaf","_npmVersion":"5.0.3","_nodeVersion":"8.1.1","_npmUser":{"name":"canercandan","email":"caner@candan.fr"},"dist":{"integrity":"sha512-EZTdhu2hR9JIyfss37kWCv56xHU8Ll9SdJuxOPv/M8Y2d01xKvoDNFxodrPohmtuQ9qsW7GFV4Nym6Nj6HDkEw==","shasum":"89402947253e4e54caa821dfd865ed5438ad58f6","tarball":"https://registry.npmjs.org/@4geit/swg-get-user-with-api-token-helper/-/swg-get-user-with-api-token-helper-1.2.0.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDU3tcxCs2duRI9LCgMR2pwCEDpPSGNMovoatnsG+hA+wIhAPdPuSQrqB8WOc/BdjrsNT2sEoXnmHX1ADyutZTwzBNw"}]},"maintainers":[{"email":"geraldine@starke.fr","name":"geraldinestarke"},{"email":"Fabian@starke.fr","name":"fabianstarke"},{"email":"caner@candan.fr","name":"canercandan"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/swg-get-user-with-api-token-helper-1.2.0.tgz_1501512753969_0.3094700032379478"}},"1.5.0":{"name":"@4geit/swg-get-user-with-api-token-helper","version":"1.5.0","description":"return an account that matches the passed api token","main":"index.js","bugs":{"url":"https://gitlab.com/4geit/swagger-packages/issues"},"homepage":"https://gitlab.com/4geit/swagger-packages/tree/master/swg-get-user-with-api-token-helper#README","keywords":[],"author":{"name":"Caner Candan","email":"caner@candan.fr"},"license":"MIT","publishConfig":{"access":"public"},"_id":"@4geit/swg-get-user-with-api-token-helper@1.5.0","_npmVersion":"5.3.0","_nodeVersion":"8.4.0","_npmUser":{"name":"canercandan","email":"caner@candan.fr"},"dist":{"integrity":"sha512-gbAsIP/rp2JypWvPGgaQeNjIjhvnzWtGQOj9Akezvonlq8gstNaHumVP52JDUiGr+XBboSOgLLHdanPAV1QIvQ==","shasum":"cb892ca14f9aecaaa1091d23faa755b04876c2d6","tarball":"https://registry.npmjs.org/@4geit/swg-get-user-with-api-token-helper/-/swg-get-user-with-api-token-helper-1.5.0.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCCYSg0C93sde929MNzJSAdanMfM0afNO/yRClSy7CoyQIgfjwJkD129ocLuCAoYAsaM+neHs3pvhG7X6qkV9Q5RVM="}]},"maintainers":[{"email":"geraldine@starke.fr","name":"geraldinestarke"},{"email":"Fabian@starke.fr","name":"fabianstarke"},{"email":"caner@candan.fr","name":"canercandan"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/swg-get-user-with-api-token-helper-1.5.0.tgz_1503793941924_0.24943576427176595"}},"1.6.3":{"name":"@4geit/swg-get-user-with-api-token-helper","version":"1.6.3","description":"return an account that matches the passed api token","main":"index.js","bugs":{"url":"https://gitlab.com/4geit/swagger-packages/issues"},"homepage":"https://gitlab.com/4geit/swagger-packages/tree/master/swg-get-user-with-api-token-helper#README","keywords":[],"author":{"name":"Caner Candan","email":"caner@candan.fr"},"license":"MIT","publishConfig":{"access":"public"},"_id":"@4geit/swg-get-user-with-api-token-helper@1.6.3","_npmVersion":"5.3.0","_nodeVersion":"8.4.0","_npmUser":{"name":"canercandan","email":"caner@candan.fr"},"dist":{"integrity":"sha512-/nVugMbfhoAiSei4V9c9hhJW72lqKz5U2tJTbqe4AfQevlKmwh4LImIwo+nhKy9tPDmtp/tQAlMdKi2VLxXZGQ==","shasum":"599fe0a94e196e346b37558975cb136cc6d745ee","tarball":"https://registry.npmjs.org/@4geit/swg-get-user-with-api-token-helper/-/swg-get-user-with-api-token-helper-1.6.3.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCUslwSJrdqyP8RjZKiKd1tQ3ly2osrHKe2XWxqytEwbQIhAPQuVJL7OH6CKIEEWYyhTU85NWktZ6bNOzV9uju/2NEk"}]},"maintainers":[{"email":"geraldine@starke.fr","name":"geraldinestarke"},{"email":"Fabian@starke.fr","name":"fabianstarke"},{"email":"caner@candan.fr","name":"canercandan"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/swg-get-user-with-api-token-helper-1.6.3.tgz_1503865526123_0.8836433393880725"}},"1.10.1":{"name":"@4geit/swg-get-user-with-api-token-helper","version":"1.10.1","description":"return an account that matches the passed api token","main":"index.js","bugs":{"url":"https://gitlab.com/4geit/swagger-packages/issues"},"homepage":"https://gitlab.com/4geit/swagger-packages/tree/master/packages/swg-get-user-with-api-token-helper#README","keywords":[],"author":{"name":"Caner Candan","email":"caner@candan.fr"},"license":"MIT","publishConfig":{"access":"public"},"_id":"@4geit/swg-get-user-with-api-token-helper@1.10.1","_npmVersion":"5.3.0","_nodeVersion":"8.5.0","_npmUser":{"name":"canercandan","email":"caner@candan.fr"},"dist":{"integrity":"sha512-ubvCnduDAlTnPvS5AHncl6KmokbPMovAgeMNuNOE5F9xN7qIzfvoxI04XgG9TtO3z5MTAwWhLRHEfGXbgy8oIw==","shasum":"c38468e21b8140fc593939fc80ad43f92fa3866b","tarball":"https://registry.npmjs.org/@4geit/swg-get-user-with-api-token-helper/-/swg-get-user-with-api-token-helper-1.10.1.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCvBuuq8H85TGU3WiEGNG0QYDLFV7Vz/G+KSqeq8p6wpAIhAJVnL9LVLEkM+3KXkp1vAN6OCCeFEcCZ3B/AvsazTCI9"}]},"maintainers":[{"email":"geraldine@starke.fr","name":"geraldinestarke"},{"email":"Fabian@starke.fr","name":"fabianstarke"},{"email":"caner@candan.fr","name":"canercandan"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/swg-get-user-with-api-token-helper-1.10.1.tgz_1505747556884_0.8530691035557538"}},"1.15.1":{"name":"@4geit/swg-get-user-with-api-token-helper","version":"1.15.1","description":"return an account that matches the passed api token","main":"index.js","bugs":{"url":"https://gitlab.com/4geit/swagger-packages/issues"},"homepage":"https://gitlab.com/4geit/swagger-packages/tree/master/packages/swg-get-user-with-api-token-helper#README","keywords":[],"author":{"name":"Caner Candan","email":"caner@candan.fr"},"license":"MIT","publishConfig":{"access":"public"},"_id":"@4geit/swg-get-user-with-api-token-helper@1.15.1","_npmVersion":"5.3.0","_nodeVersion":"8.5.0","_npmUser":{"name":"canercandan","email":"caner@candan.fr"},"dist":{"integrity":"sha512-k7L91azn6CeV+oWqmZOqTcBM4aGRGWmxVHiHEAWZb+anIebyoQS00uN7clrXhXXVXgTxNS+ZAc+DH/t78jMnOQ==","shasum":"800399bcac1b6dae5243209a7bff26c740dd192d","tarball":"https://registry.npmjs.org/@4geit/swg-get-user-with-api-token-helper/-/swg-get-user-with-api-token-helper-1.15.1.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCUN49gDlliFReVSL/GlLWvDlBexMJijuH+xyVhMrhpgwIgNHOZ7cjregcfallatoy2sLv0k0fgjD94YJrJiWTKInw="}]},"maintainers":[{"email":"geraldine@starke.fr","name":"geraldinestarke"},{"email":"Fabian@starke.fr","name":"fabianstarke"},{"email":"caner@candan.fr","name":"canercandan"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/swg-get-user-with-api-token-helper-1.15.1.tgz_1506190692200_0.2907826267182827"}},"1.28.0":{"name":"@4geit/swg-get-user-with-api-token-helper","version":"1.28.0","description":"return an account that matches the passed api token","main":"index.js","bugs":{"url":"https://gitlab.com/4geit/swagger-packages/issues"},"homepage":"https://gitlab.com/4geit/swagger-packages/tree/master/packages/swg-get-user-with-api-token-helper#README","keywords":[],"author":{"name":"Caner Candan","email":"caner@candan.fr"},"license":"MIT","publishConfig":{"access":"public"},"_id":"@4geit/swg-get-user-with-api-token-helper@1.28.0","_npmVersion":"5.3.0","_nodeVersion":"8.5.0","_npmUser":{"name":"canercandan","email":"caner@candan.fr"},"dist":{"integrity":"sha512-BJo3P3Gqu27992614h9duoDBxNYGoTQ3UnnHs4P06eaYPWGOXGLqKOSZW61FQJBGMoL78qhedxPckXs5jlc23g==","shasum":"62f8a9260d1e22d74c4212e29faedf26077ccaaa","tarball":"https://registry.npmjs.org/@4geit/swg-get-user-with-api-token-helper/-/swg-get-user-with-api-token-helper-1.28.0.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQD/DSL/5p3QMpbT3usEdX9qRObP3mNZfKWC5nl5ARBPEQIhAK6oCIbkNd1JQ+/JWv7NEuVHwQ7IDGBx9ELd4oT/rY/G"}]},"maintainers":[{"email":"geraldine@starke.fr","name":"geraldinestarke"},{"email":"Fabian@starke.fr","name":"fabianstarke"},{"email":"caner@candan.fr","name":"canercandan"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/swg-get-user-with-api-token-helper-1.28.0.tgz_1507282912006_0.8949253626633435"}}},"readme":"# @4geit/swg-get-user-with-api-token-helper [![npm version](//badge.fury.io/js/@4geit%2Fswg-get-user-with-api-token-helper.svg)](//badge.fury.io/js/@4geit%2Fswg-get-user-with-api-token-helper)\n\n---\n\nreturn an account that matches the passed api token\n\n## Installation\n\n1. A recommended way to install ***@4geit/swg-get-user-with-api-token-helper*** is through [npm](//www.npmjs.com/search?q=@4geit/swg-get-user-with-api-token-helper) package manager using the following command:\n\n```bash\nnpm i @4geit/swg-get-user-with-api-token-helper --save\n```\n\nOr use `yarn` using the following command:\n\n```bash\nyarn add @4geit/swg-get-user-with-api-token-helper\n```\n\n2. All you have to do is to import the `@4geit/swg-get-user-with-api-token-helper` package in your controller or mock file as below:\n\n```js\n// ...\nconst swgGetUserWithApiTokenHelper = require('@4geit/swg-get-user-with-api-token-helper');\n// ...\n```\n\nAnd use it with one of your endpoint controller as below:\n\n```js\n// ...\nmodule.exports = {\n  // ...\n  getItems: swgGetUserWithApiTokenHelper(\n    ({ req, res, user }) => {\n      // ...\n    }\n  ),\n  // ...\n};\n```\n","maintainers":[{"email":"geraldine@starke.fr","name":"geraldinestarke"},{"email":"Fabian@starke.fr","name":"fabianstarke"},{"email":"caner@candan.fr","name":"canercandan"}],"time":{"modified":"2022-04-04T10:46:51.363Z","created":"2017-07-04T23:30:00.035Z","1.0.0":"2017-07-04T23:30:00.035Z","1.1.0":"2017-07-04T23:39:12.121Z","1.2.0":"2017-07-31T14:52:34.910Z","1.5.0":"2017-08-27T00:32:22.840Z","1.6.3":"2017-08-27T20:25:27.119Z","1.10.1":"2017-09-18T15:12:37.879Z","1.15.1":"2017-09-23T18:18:13.078Z","1.28.0":"2017-10-06T09:41:52.895Z"},"homepage":"https://gitlab.com/4geit/swagger-packages/tree/master/packages/swg-get-user-with-api-token-helper#README","keywords":[],"author":{"name":"Caner Candan","email":"caner@candan.fr"},"bugs":{"url":"https://gitlab.com/4geit/swagger-packages/issues"},"license":"MIT","readmeFilename":"README.md"}