š Social Sign-in environment variables
To allow users to sign in with their social media accounts, you need to set up the corresponding provider keys in your .env
files.
Thanks to Auth.js (opens in a new tab) this process is fairly straightforward.
Basically every provider you want to use needs two keys, a CLIENT_ID
and a CLIENT_SECRET
.
The process to get these keys is different for every provider.
Simply follow the very clear instructions on the Auth.js website (opens in a new tab).
Google Sign-in
Google Sign-in is arguably the simplest provider to set up and the most commonly used one by users.
Follow these enstructions to get your client id and secret: