@@ -10,11 +10,11 @@ import { NodeOAuthClient, AtprotoDohHandleResolver } from '@atproto/oauth-client
1010import { getOAuthLock } from '#server/utils/atproto/lock'
1111import { useOAuthStorage } from '#server/utils/atproto/storage'
1212import { LIKES_SCOPE } from '#shared/utils/constants'
13- import { type NitroRuntimeConfig } from 'nitropack/types '
14-
13+ import type { RuntimeConfig } from 'nuxt/schema '
14+ import type { UserServerSession } from '#shared/types/userSession'
1515// @ts -expect-error virtual file from oauth module
1616import { clientUri } from '#oauth/config'
17- import type { UserServerSession } from '~~/shared/types/userSession'
17+
1818// TODO: If you add writing a new record you will need to add a scope for it
1919export const scope = `atproto ${ LIKES_SCOPE } `
2020
@@ -71,7 +71,7 @@ type EventHandlerWithOAuthSession<T extends EventHandlerRequest, D> = (
7171
7272export async function getNodeOAuthClient (
7373 serverSession : SessionManager ,
74- config : NitroRuntimeConfig ,
74+ config : RuntimeConfig ,
7575) : Promise < NodeOAuthClient > {
7676 const { stateStore, sessionStore } = useOAuthStorage ( serverSession )
7777
@@ -91,7 +91,7 @@ export async function getNodeOAuthClient(
9191 } )
9292}
9393
94- export async function loadJWKs ( config : NitroRuntimeConfig ) : Promise < Keyset | undefined > {
94+ export async function loadJWKs ( config : RuntimeConfig ) : Promise < Keyset | undefined > {
9595 // If we ever need to add multiple JWKs to rotate keys we will need to add a new one
9696 // under a new variable and update here
9797 const jwkOne = config . oauthJwkOne
0 commit comments