Skip to content

Commit

Permalink
Add limit to service tokens (#2512)
Browse files Browse the repository at this point in the history
limit service auth to use non-app-pass tokens.
  • Loading branch information
devinivy authored May 23, 2024
1 parent 9974e9a commit af8271b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/pds/src/api/com/atproto/server/getServiceAuth.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { Server } from '../../../../lexicon'

export default function (server: Server, ctx: AppContext) {
server.com.atproto.server.getServiceAuth({
auth: ctx.authVerifier.access,
auth: ctx.authVerifier.accessNotAppPassword,
handler: async ({ params, auth }) => {
const did = auth.credentials.did
const keypair = await ctx.actorStore.keypair(did)
Expand Down

0 comments on commit af8271b

Please sign in to comment.