Skip to content

Commit

Permalink
did based only
Browse files Browse the repository at this point in the history
  • Loading branch information
dholms committed Feb 3, 2024
1 parent d97d91a commit 51bc5ec
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 20 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { InvalidRequestError } from '@atproto/xrpc-server'
import { DAY, HOUR } from '@atproto/common'
import { DAY } from '@atproto/common'
import { Server } from '../../../../lexicon'
import AppContext from '../../../../context'

Expand All @@ -11,10 +11,6 @@ export default function (server: Server, ctx: AppContext) {
points: 10,
calcKey: ({ auth }) => auth.credentials.did,
},
{
durationMs: HOUR,
points: 10,
},
],
auth: ctx.authVerifier.accessCheckTakedown,
handler: async ({ auth }) => {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { InvalidRequestError } from '@atproto/xrpc-server'
import { DAY, HOUR } from '@atproto/common'
import { DAY } from '@atproto/common'
import { Server } from '../../../../lexicon'
import AppContext from '../../../../context'

Expand All @@ -11,10 +11,6 @@ export default function (server: Server, ctx: AppContext) {
points: 10,
calcKey: ({ auth }) => auth.credentials.did,
},
{
durationMs: HOUR,
points: 10,
},
],
auth: ctx.authVerifier.accessCheckTakedown,
handler: async ({ auth }) => {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { InvalidRequestError } from '@atproto/xrpc-server'
import { DAY, HOUR } from '@atproto/common'
import { DAY } from '@atproto/common'
import { Server } from '../../../../lexicon'
import AppContext from '../../../../context'

Expand All @@ -11,10 +11,6 @@ export default function (server: Server, ctx: AppContext) {
points: 10,
calcKey: ({ auth }) => auth.credentials.did,
},
{
durationMs: HOUR,
points: 10,
},
],
auth: ctx.authVerifier.accessCheckTakedown,
handler: async ({ auth }) => {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { DAY, HOUR } from '@atproto/common'
import { DAY } from '@atproto/common'
import AppContext from '../../../../context'
import { Server } from '../../../../lexicon'

Expand All @@ -10,10 +10,6 @@ export default function (server: Server, ctx: AppContext) {
points: 10,
calcKey: ({ input }) => input.body.email.toLowerCase(),
},
{
durationMs: HOUR,
points: 10,
},
],
handler: async ({ input }) => {
const email = input.body.email.toLowerCase()
Expand Down

0 comments on commit 51bc5ec

Please sign in to comment.