Articles on: General FAQ

How does Magic make adding Social Logins easier?

Without Magic

It may take weeks to research, then integrate each individual social provider. Your backend may also have to be configured specifically to support each one.

With Magic

All the complications are abstracted away and you can integrate login with Google, Facebook, Apple and more in less than a day. Add support for additional providers and keep your backend code unchanged.

In your app

// Initiate Magic
const magic = new Magic(MAGIC_API_KEY, {
    extensions: [new MagicOAuthExtension()],

// Login with Google
const didToken = await magic.oauth.loginWithRedirect({
    provider: "google",
    redirectURI: `${window.location.origin}/callback`

And in the dashboard

Updated on: 09/11/2021

Was this article helpful?

Share your feedback


Thank you!