Home / Companies / SuperTokens / Blog / Post Details
Content Deep Dive

Adding social login to your website with SuperTokens (custom UI only)

Blog post from SuperTokens

Post Details
Company
Date Published
Author
Rishabh Poddar
Word Count
671
Language
English
Hacker News Points
-
Summary

This tutorial provides a step-by-step guide for building a custom social login UI using SuperTokens, specifically for users developing their own frontend for a website. It assumes that users have completed the initial setup guides for either the ThirdParty or ThirdPartyEmailPassword recipes and details the implementation of a GitHub login feature. The process involves two main steps: redirecting users to GitHub for authentication and handling the return with an authorization code to sign in or sign up users. The guide describes using the supertokens-web-js SDK to manage the login flow and highlights the automatic handling of session tokens via cookies by the SuperTokens system, which ensures seamless integration of social login capabilities.