elysia-auth-drizzle
Advanced tools
Comparing version 1.0.4 to 1.1.0
@@ -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; |
{ | ||
"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
71798
2265