Skip to content

Commit 21a19d7

Browse files
committed
changed to useRunTimeConfig for jwk
1 parent 1ea6361 commit 21a19d7

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

server/utils/atproto/oauth.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -89,8 +89,7 @@ export async function getNodeOAuthClient(): Promise<NodeOAuthClient> {
8989
export async function loadJWKs(): Promise<Keyset | undefined> {
9090
// If we ever need to add multiple JWKs to rotate keys we will need to add a new one
9191
// under a new variable and update here
92-
// @ts-expect-error Not sure how to strongly type these or if there's a better way to get this env
93-
const jwkOne = import.meta.env.NUXT_OAUTH_JWK_ONE
92+
const jwkOne = useRuntimeConfig().oauthJwkOne
9493
if (!jwkOne) return undefined
9594

9695
// For multiple keys if we need to rotate

0 commit comments

Comments
 (0)