SafeShows
SafeShows
Explore posts from servers
TTCTheo's Typesafe Cult
Created by Profeshnul Duvlupur on 5/4/2023 in #questions
need discord bot hosting 24/7 uptime free low specs no card no phone
38 replies
TTCTheo's Typesafe Cult
Created by Profeshnul Duvlupur on 5/4/2023 in #questions
need discord bot hosting 24/7 uptime free low specs no card no phone
get a pi and host it ur self
38 replies
AOAnswer Overflow
Created by SafeShows on 5/3/2023 in #mark-solution-tags
test
456
4 replies
TTCTheo's Typesafe Cult
Created by SafeShows on 4/16/2023 in #questions
Protect all of the app so user HAS to be logged in
4 replies
TTCTheo's Typesafe Cult
Created by SafeShows on 4/15/2023 in #questions
Two providers one user
ohh yeah that works too
20 replies
TTCTheo's Typesafe Cult
Created by SafeShows on 4/15/2023 in #questions
Two providers one user
can I see ur one?
20 replies
TTCTheo's Typesafe Cult
Created by SafeShows on 4/15/2023 in #questions
Two providers one user
@Cox Insider I hope that help you ^^^
20 replies
TTCTheo's Typesafe Cult
Created by shiv on 4/15/2023 in #questions
Adding prisma after init
if you haven't done anything big just re-init the project
3 replies
TTCTheo's Typesafe Cult
Created by SafeShows on 4/15/2023 in #questions
Two providers one user
20 replies
TTCTheo's Typesafe Cult
Created by SafeShows on 4/15/2023 in #questions
Two providers one user
https://www.npmjs.com/package/next-auth-steam but I change some of the code on my end
20 replies
TTCTheo's Typesafe Cult
Created by SafeShows on 4/15/2023 in #questions
Two providers one user
ik not the best but it works I guess
20 replies
TTCTheo's Typesafe Cult
Created by SafeShows on 4/15/2023 in #questions
Two providers one user
got it just had to add allowDangerousEmailAccountLinking: true, to the provider options
20 replies
TTCTheo's Typesafe Cult
Created by SafeShows on 4/15/2023 in #questions
Two providers one user
and here's my [...nextauth].ts
import NextAuth from "next-auth";
import { authOptions } from "@/server/auth";
import DiscordProvider from "next-auth/providers/discord";
import SteamProvider from "next-auth-steam";
import type { NextApiRequest, NextApiResponse } from "next";
import { env } from "@/env.mjs";

export default async function handler(
req: NextApiRequest,
res: NextApiResponse
) {
authOptions.providers = [
DiscordProvider({
clientId: env.DISCORD_CLIENT_ID,
clientSecret: env.DISCORD_CLIENT_SECRET,
}),
SteamProvider(req, {
clientSecret: env.STEAM_SECRET!,
callbackUrl: "http://localhost:3000/api/auth/callback/steam",
}),
];
return NextAuth(req, res, authOptions);
}
import NextAuth from "next-auth";
import { authOptions } from "@/server/auth";
import DiscordProvider from "next-auth/providers/discord";
import SteamProvider from "next-auth-steam";
import type { NextApiRequest, NextApiResponse } from "next";
import { env } from "@/env.mjs";

export default async function handler(
req: NextApiRequest,
res: NextApiResponse
) {
authOptions.providers = [
DiscordProvider({
clientId: env.DISCORD_CLIENT_ID,
clientSecret: env.DISCORD_CLIENT_SECRET,
}),
SteamProvider(req, {
clientSecret: env.STEAM_SECRET!,
callbackUrl: "http://localhost:3000/api/auth/callback/steam",
}),
];
return NextAuth(req, res, authOptions);
}
20 replies
TTCTheo's Typesafe Cult
Created by SafeShows on 4/15/2023 in #questions
Two providers one user
I'm using next-auth/providers/discord for discord and next-auth-steam for steam provider
20 replies