ill-inc / biomes-game

Biomes is an open source sandbox MMORPG built for the web using web technologies such as Next.js, Typescript, React and WebAssembly.
https://www.biomes.gg
MIT License
2.5k stars 295 forks source link

Disable social logins when the associated provider is not available #52

Open DevinLeamy opened 1 year ago

DevinLeamy commented 1 year ago

Overview

Login with Google, Discord, Twitch only work if the associated social login provider is available. This typically requires access to an API key and, therefore, does not work for the opensource local deployment build (i.e. ./b data-snapshot run). However, on http://localhost:3000 (the splash page for the local build) the social logins are still listed, and do nothing or crash the web server when clicked.

Desired solution

Conditionally render the social logins based on whether the social login provider is available. A brute-force approach would be to not show the social logins if using the data-snapshot build.

melihaltin commented 1 year ago

was that issue solved??

bright8192 commented 1 year ago

You should disable Discord web hooks by adding:

discordHooksEnabled: false