@brightcove/hono-sessions
Advanced tools
Comparing version 1.0.7 to 1.0.8
@@ -119,3 +119,3 @@ import hono from 'hono'; | ||
export declare const startSession: (c: hono.Context, data: any) => Promise<void>; | ||
export declare const endSession: (c: hono.Context) => Promise<void>; | ||
export declare const endSession: (c: hono.Context, token?: string) => Promise<void>; | ||
export {}; |
@@ -302,6 +302,6 @@ /* eslint @typescript-eslint/no-explicit-any: 0 */ | ||
exports.startSession = startSession; | ||
const endSession = (c) => __awaiter(void 0, void 0, void 0, function* () { | ||
const endSession = (c, token) => __awaiter(void 0, void 0, void 0, function* () { | ||
const manager = c.var.sessionManager; | ||
if (manager) { | ||
yield manager.endSession(c); | ||
yield manager.endSession(c, token); | ||
c.set('session', undefined); | ||
@@ -308,0 +308,0 @@ c.set('sessionCookie', undefined); |
{ | ||
"name": "@brightcove/hono-sessions", | ||
"version": "1.0.7", | ||
"version": "1.0.8", | ||
"description": "A session manager for Hono that uses DynamoDB as session storage by default. Supports session retrieval by cookie or access token.", | ||
@@ -5,0 +5,0 @@ "type": "commonjs", |
@@ -408,7 +408,7 @@ /* eslint @typescript-eslint/no-explicit-any: 0 */ | ||
export const endSession = async (c: hono.Context) => { | ||
export const endSession = async (c: hono.Context, token?: string) => { | ||
const manager = c.var.sessionManager; | ||
if (manager) { | ||
await manager.endSession(c); | ||
await manager.endSession(c, token); | ||
c.set('session', undefined); | ||
@@ -415,0 +415,0 @@ c.set('sessionCookie', undefined); |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
44650