Abramov
Abramov
Explore posts from servers
TTCTheo's Typesafe Cult
Created by Abramov on 4/28/2023 in #questions
Is there any good way to implement Steam-Auth in NEXTJS app?
We have next-auth - and it's great. But next-auth doesn't support steam as a provider because steam is stupid shit. So the best way to implement steam-auth it's by using steam-passport But dude, I don't wanna create getServerSideprops in every page file. And the way is kinda strange to me. (https://github.com/HilliamT/nextjs-steam-auth) It will be easier if we have hook - useSession and a provider. Please, if you have any example of using steam-auth share it. poohheh
6 replies
TTCTheo's Typesafe Cult
Created by Abramov on 4/18/2023 in #questions
Tailwind Intellisense - WebStorm
I hope this guide will help webstorm users. WebStorm version - 2023.1 , Tailwindcss - 3.3.0 The problem: Tailwind Intellesense doesn't work at all. Solution: - Change tailwind config file extension from .ts to .cjs and change code to this one:
/** @type {import('tailwindcss').Config} */
const config = {
content: ["./src/**/*.{js,ts,jsx,tsx}"],
theme: {
extend: {},
},
plugins: [],
};

module.exports = config;
/** @type {import('tailwindcss').Config} */
const config = {
content: ["./src/**/*.{js,ts,jsx,tsx}"],
theme: {
extend: {},
},
plugins: [],
};

module.exports = config;
Don't forget to save the file. And add to tsconfig.json:
"exclude": ["node_modules", "tailwind.config.cjs"]
"exclude": ["node_modules", "tailwind.config.cjs"]
2 replies