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.
GitHub
GitHub - HilliamT/nextjs-steam-auth: An example NextJS application ...
An example NextJS application that configures Passport-based Steam authentication via Next Connect - GitHub - HilliamT/nextjs-steam-auth: An example NextJS application that configures Passport-base...
3 Replies
Not sure how to answer your question, but you could always implement your own provider 😛
https://next-auth.js.org/v3/configuration/providers#using-a-custom-provider
https://partner.steamgames.com/doc/webapi_overview/oauth
I saw a question not too long ago where someone was using steam auth, but it was using the npm module you linked.
https://discord.com/channels/966627436387266600/1096680756174139462
Holly molly, I didn't see this thread.
I find in this thread steam provider - https://www.npmjs.com/package/next-auth-steam
If this custom provider If it works, I will be grateful to you.
O-auth is not supported in stream any more, But official documentation is still there which is useless right now.
npm
next-auth-steam
Steam authentication provider for next-auth. Latest version: 0.1.3, last published: 12 days ago. Start using next-auth-steam in your project by running
npm i next-auth-steam
. There are no other projects in the npm registry using next-auth-steam.you can very easily roll your own auth
Passport is garbage
I’ve tried next-auth-steam for easy integration but couldnt get it to work with latest nextjs structure