Skip to content

Commit 1320850

Browse files
committed
appeasing my robotic overlords in the ci
1 parent 7abd524 commit 1320850

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

server/utils/atproto/oauth.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,11 @@ import { NodeOAuthClient, AtprotoDohHandleResolver } from '@atproto/oauth-client
1010
import { getOAuthLock } from '#server/utils/atproto/lock'
1111
import { useOAuthStorage } from '#server/utils/atproto/storage'
1212
import { 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
1616
import { 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
1919
export const scope = `atproto ${LIKES_SCOPE}`
2020

@@ -71,7 +71,7 @@ type EventHandlerWithOAuthSession<T extends EventHandlerRequest, D> = (
7171

7272
export 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

Comments
 (0)