🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Book a DemoInstallSign in
Socket

@webiny/api-authentication

Package Overview
Dependencies
Maintainers
1
Versions
432
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@webiny/api-authentication - npm Package Compare versions

Comparing version

to
5.22.0-beta.0

2

authenticateUsingHttpHeader.d.ts

@@ -1,2 +0,2 @@

import { BeforeHandlerPlugin } from "@webiny/handler/plugins/BeforeHandlerPlugin";
import { BeforeHandlerPlugin } from "@webiny/handler";
import { HttpContext } from "@webiny/handler-http/types";

@@ -3,0 +3,0 @@ import { AuthenticationContext } from "./types";

@@ -8,3 +8,3 @@ "use strict";

var _BeforeHandlerPlugin = require("@webiny/handler/plugins/BeforeHandlerPlugin");
var _handler = require("@webiny/handler");

@@ -20,3 +20,3 @@ const defaultGetHeader = context => {

const authenticateUsingHttpHeader = (getHeader = defaultGetHeader) => {
return new _BeforeHandlerPlugin.BeforeHandlerPlugin(async context => {
return new _handler.BeforeHandlerPlugin(async context => {
const {

@@ -23,0 +23,0 @@ method

@@ -1,7 +0,4 @@

import { Context as BaseContext } from "@webiny/handler/types";
import { ContextPlugin } from "@webiny/handler/plugins/ContextPlugin";
import { ContextPlugin } from "@webiny/handler";
import { AuthenticationContext } from "./types";
interface Context extends BaseContext, AuthenticationContext {
}
declare const _default: () => ContextPlugin<Context>;
declare const _default: () => ContextPlugin<AuthenticationContext<import("./types").Identity>>;
export default _default;

@@ -8,3 +8,3 @@ "use strict";

var _ContextPlugin = require("@webiny/handler/plugins/ContextPlugin");
var _handler = require("@webiny/handler");

@@ -14,3 +14,3 @@ var _createAuthentication = require("./createAuthentication");

var _default = () => {
return new _ContextPlugin.ContextPlugin(context => {
return new _handler.ContextPlugin(context => {
context.authentication = (0, _createAuthentication.createAuthentication)();

@@ -17,0 +17,0 @@ });

{
"name": "@webiny/api-authentication",
"version": "5.21.0",
"version": "5.22.0-beta.0",
"main": "index.js",

@@ -14,15 +14,15 @@ "repository": {

"dependencies": {
"@babel/runtime": "7.16.3",
"@webiny/handler": "5.21.0",
"@webiny/handler-http": "5.21.0"
"@babel/runtime": "7.16.7",
"@webiny/handler": "5.22.0-beta.0",
"@webiny/handler-http": "5.22.0-beta.0"
},
"devDependencies": {
"@babel/cli": "^7.5.5",
"@babel/core": "^7.5.5",
"@babel/plugin-proposal-object-rest-spread": "^7.5.5",
"@babel/plugin-transform-runtime": "^7.5.5",
"@babel/preset-env": "^7.5.5",
"@babel/preset-typescript": "^7.0.0",
"@webiny/cli": "^5.21.0",
"@webiny/project-utils": "^5.21.0",
"@babel/cli": "^7.16.0",
"@babel/core": "^7.16.0",
"@babel/plugin-proposal-object-rest-spread": "^7.16.0",
"@babel/plugin-transform-runtime": "^7.16.4",
"@babel/preset-env": "^7.16.4",
"@babel/preset-typescript": "^7.16.0",
"@webiny/cli": "^5.22.0-beta.0",
"@webiny/project-utils": "^5.22.0-beta.0",
"jest-dynalite": "^3.2.0",

@@ -52,3 +52,3 @@ "rimraf": "^3.0.2",

},
"gitHead": "c3d4955bf74e7ffdb9628867e3b23cdfe64ea8dc"
"gitHead": "487330472a07000c4845340f3b3dfa6b3ae98944"
}

@@ -1,2 +0,3 @@

export interface AuthenticationContext<TIdentity = Identity> {
import { Context } from "@webiny/handler/types";
export interface AuthenticationContext<TIdentity = Identity> extends Context {
authentication: Authentication<TIdentity>;

@@ -3,0 +4,0 @@ }