Skip to content

Commit

Permalink
chore: add typing for session config
Browse files Browse the repository at this point in the history
  • Loading branch information
danielroe committed Feb 22, 2024
1 parent 4ec88a6 commit 5f3918c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/runtime/server/middleware/kinde.ts
@@ -1,4 +1,4 @@
import type { H3Event } from 'h3'
import type { H3Event, SessionConfig } from 'h3'
import type { ACClient, SessionManager } from '@kinde-oss/kinde-typescript-sdk'
import { defineEventHandler } from 'h3'
import { getKindeClient } from '../utils/client'
Expand All @@ -23,7 +23,7 @@ async function createSessionManager(event: H3Event): Promise<SessionManager> {
const config = {
name: 'kinde',
password: 'slkdaslkdjfskldafjaslkdjfasldkfjsdf',
}
} satisfies SessionConfig
return {
async getSessionItem(itemKey) {
const session = await getSession(event, config)
Expand Down

0 comments on commit 5f3918c

Please sign in to comment.