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: { LnAuth: {
encodedUrl: async (lnAuth, args, { models }) => { encodedUrl: async (lnAuth, args, { models }) => {
return encodedUrl(process.env.LNAUTH_URL, 'login', lnAuth.k1) 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: { LnWith: {
encodedUrl: async (lnWith, args, { models }) => { 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 resolvers from './resolvers'
import typeDefs from './typeDefs' import typeDefs from './typeDefs'
import models from './models' import models from './models'
import slashtags from './slashtags'
import { print } from 'graphql' import { print } from 'graphql'
import lnd from './lnd' import lnd from './lnd'
import search from './search' import search from './search'
@ -28,8 +27,7 @@ export default async function getSSRApolloClient ({ req, res, me = null }) {
? session.user ? session.user
: me, : me,
lnd, lnd,
search, search
slashtags
} }
}), }),
cache: new InMemoryCache({ cache: new InMemoryCache({

View File

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

View File

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

View File

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

View File

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