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.4 to 1.1.0

10

dist/index.d.ts

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

type ElysiaAuthDrizzlePluginConfig<T> = Options<T>;
declare const checkTokenValidity: <T>(options: Options<T>, currentUrl: string, currentMethod: HTTPMethods, cookieManager: {
[x: string]: {
remove: () => void;
};
}) => (tokenValue?: string | undefined) => Promise<void | {
connectedUser: T;
isConnected: true;
}>;
export { type ElysiaAuthDrizzlePluginConfig, type ElysiaUrlConfig, createUserToken, elysiaAuthDrizzlePlugin, getAccessTokenFromRequest, refreshUserToken, removeAllUserTokens, removeUserToken };
export { type ElysiaAuthDrizzlePluginConfig, type ElysiaUrlConfig, checkTokenValidity, createUserToken, elysiaAuthDrizzlePlugin, getAccessTokenFromRequest, refreshUserToken, removeAllUserTokens, removeUserToken };

@@ -863,3 +863,5 @@ 'use strict';

var getAccessTokenFromRequest2 = getAccessTokenFromRequest;
var checkTokenValidity2 = checkTokenValidity;
exports.checkTokenValidity = checkTokenValidity2;
exports.createUserToken = createUserToken2;

@@ -866,0 +868,0 @@ exports.elysiaAuthDrizzlePlugin = elysiaAuthDrizzlePlugin2;

2

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

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

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

const checkTokenValidity =
export const checkTokenValidity =
<T>(

@@ -119,0 +119,0 @@ options: Options<T>,

import {
checkTokenValidity as CheckTokenValidity,
elysiaAuthDrizzlePlugin as plugin,

@@ -22,1 +23,2 @@ getAccessTokenFromRequest as GetAccessTokenFromRequest,

export type ElysiaAuthDrizzlePluginConfig<T> = Options<T>;
export const checkTokenValidity = CheckTokenValidity;

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