remove slashtags temporarily

This commit is contained in:
keyan 2023-08-16 19:48:45 -05:00
parent a61ef33a1b
commit ddb69b5d9b
7 changed files with 72 additions and 72 deletions

View File

@ -39,10 +39,10 @@ export default {
LnAuth: {
encodedUrl: async (lnAuth, args, { models }) => {
return encodedUrl(process.env.LNAUTH_URL, 'login', lnAuth.k1)
},
slashtagUrl: async (lnAuth, args, { models, slashtags }) => {
return slashtags.formatURL(lnAuth.k1)
}
// slashtagUrl: async (lnAuth, args, { models, slashtags }) => {
// return slashtags.formatURL(lnAuth.k1)
// }
},
LnWith: {
encodedUrl: async (lnWith, args, { models }) => {

File diff suppressed because one or more lines are too long

View File

@ -4,7 +4,6 @@ import { makeExecutableSchema } from '@graphql-tools/schema'
import resolvers from './resolvers'
import typeDefs from './typeDefs'
import models from './models'
import slashtags from './slashtags'
import { print } from 'graphql'
import lnd from './lnd'
import search from './search'
@ -28,8 +27,7 @@ export default async function getSSRApolloClient ({ req, res, me = null }) {
? session.user
: me,
lnd,
search,
slashtags
search
}
}),
cache: new InMemoryCache({

View File

@ -17,7 +17,6 @@ export default gql`
k1: String!
pubkey: String
encodedUrl: String!
slashtagUrl: String!
}
type LnWith {

View File

@ -59,7 +59,6 @@ export const SETTINGS_FIELDS = gql`
greeterMode
authMethods {
lightning
slashtags
nostr
github
twitter

View File

@ -156,15 +156,15 @@ const providers = [
return pubkeyAuth(credentials, new NodeNextRequest(req), 'nostrAuthPubkey')
}
}),
CredentialsProvider({
id: 'slashtags',
name: 'Slashtags',
credentials: {
pubkey: { label: 'publickey', type: 'text' },
k1: { label: 'k1', type: 'text' }
},
authorize: async (credentials, req) => await pubkeyAuth(credentials, new NodeNextRequest(req), 'slashtagId')
}),
// CredentialsProvider({
// id: 'slashtags',
// name: 'Slashtags',
// credentials: {
// pubkey: { label: 'publickey', type: 'text' },
// k1: { label: 'k1', type: 'text' }
// },
// authorize: async (credentials, req) => await pubkeyAuth(credentials, new NodeNextRequest(req), 'slashtagId')
// }),
GitHubProvider({
clientId: process.env.GITHUB_ID,
clientSecret: process.env.GITHUB_SECRET,

View File

@ -7,7 +7,6 @@ import typeDefs from '../../api/typeDefs'
import { getServerSession } from 'next-auth/next'
import { getAuthOptions } from './auth/[...nextauth]'
import search from '../../api/search'
import slashtags from '../../api/slashtags'
const apolloServer = new ApolloServer({
typeDefs,
@ -51,8 +50,7 @@ export default startServerAndCreateNextHandler(apolloServer, {
me: session
? session.user
: null,
search,
slashtags
search
}
}
})