Google Social Login with Magic
Google Social Login with Magic
#Overview
You can allow your users to sign up & login into your web application with their Google account.
#Usage
#Prerequisites
- You will need a Google Developer account
- You will need to have the Magic SDK installed into your web app
- You will need to have the Magic SDK - OAuth Extension installed into your web app
#Google Setup
After installing the OAuth extension, you can now enable Google Login for your Magic app:
- Follow Google’s instructions to set up an OAuth 2.0 app
- Obtain the OAuth Client ID and Client Secret from your Google Developer dashboard
- Go to your Magic Dashboard
- Select the Magic app for which you’d like to enable Google Login, or create a new app
- Navigate to Social Login from the sidebar
- Click the toggle for Google / Gmail
- Input the Client ID and Client Secret for your OAuth app
- Copy the Redirect URI field from your Magic Dashboard and add it to your Google Dashboard’s OAuth app configuration:
- In Magic Dashboard, click “Save”
- Click "Test Connection" to give your new Google OAuth flow a try!