Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

elysia-auth-drizzle

Package Overview
Dependencies
Maintainers
1
Versions
89
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

elysia-auth-drizzle - npm Package Compare versions

Comparing version 1.0.3 to 1.0.4

2

dist/index.d.ts

@@ -78,3 +78,3 @@ import * as Elysia from 'elysia';

declare const getAccessTokenFromRequest: (req: {
cookies?: Record<string, {
cookie?: Record<string, {
value: string;

@@ -81,0 +81,0 @@ }> | undefined;

@@ -653,6 +653,6 @@ 'use strict';

let token;
if (req.cookies && req.cookies["authorization"] && req.cookies["authorization"].value) {
if (req.cookie && req.cookie["authorization"] && req.cookie["authorization"].value) {
if (cookieSecret) {
const result = await unsignCookie(
req.cookies["authorization"].value,
req.cookie["authorization"].value,
cookieSecret

@@ -668,3 +668,3 @@ );

} else {
token = req.cookies["authorization"].value;
token = req.cookie["authorization"].value;
}

@@ -740,3 +740,3 @@ }

query,
cookies: cookie,
cookie,
url: new URL(request.url).pathname,

@@ -753,3 +753,3 @@ method: request.method

req.method,
req.cookies
req.cookie
)(tokenValue);

@@ -756,0 +756,0 @@ if (res) {

{
"name": "elysia-auth-drizzle",
"version": "1.0.3",
"version": "1.0.4",
"main": "./dist/index.js",

@@ -5,0 +5,0 @@ "typings": "dist/index.d.ts",

@@ -74,3 +74,3 @@ /* eslint-disable @typescript-eslint/ban-ts-comment */

req: {
cookies?: Record<string, { value: string }>;
cookie?: Record<string, { value: string }>;
query?: Record<string, string | undefined>;

@@ -84,9 +84,9 @@ headers: Record<string, string | undefined>;

if (
req.cookies &&
req.cookies['authorization'] &&
req.cookies['authorization'].value
req.cookie &&
req.cookie['authorization'] &&
req.cookie['authorization'].value
) {
if (cookieSecret) {
const result = await unsignCookie(
req.cookies['authorization'].value,
req.cookie['authorization'].value,
cookieSecret,

@@ -103,3 +103,3 @@ );

} else {
token = req.cookies['authorization'].value;
token = req.cookie['authorization'].value;
}

@@ -216,3 +216,3 @@ }

query,
cookies: cookie,
cookie,
url: new URL(request.url).pathname,

@@ -231,3 +231,3 @@ method: request.method as HTTPMethods,

req.method,
req.cookies,
req.cookie,
)(tokenValue);

@@ -234,0 +234,0 @@

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc