Skip to main content

Sign in with Galxe - Demo

Please see the Demo and its source code.

Visual Guidelines

Make sure you use this resource and follow our brand guidelines to implement Sign in with Galxe.

Getting Started

To get started, please apply for a client ID by contacting our live chat support from your dashboard management page.

OAuth

Galxe’s OAuth implementation supports the standard authorization code grant type for apps that don’t have access to a web browser.

Authorization flow

The request flow to authorize users for your app is:
  1. Users are redirected to request their Galxe identity.
  2. Users are redirected back to your site by Galxe.
  3. Your app accesses the API with the user’s access token.

1. Request a user’s Galxe identity

URL

scope whitelist:
  • Email
  • Twitter
  • Discord
  • Github
  • Telegram
  • EVMAddress
  • SolanaAddress
  • SeiAddress
  • AptosAddress
  • InjectiveAddress
  • FlowAddress
  • GalxeID

Parameters

Response

By default, the response will add the following parameter to your redirect_uri:

2. Get Access Token

If the user accepts your request, Galxe redirects back to your site with a temporary code in a code parameter as well as the state you provided in the previous step in a state parameter. The temporary code will expire after 10 minutes. If the states don’t match, then a third party created the request, and you should abort the process. Exchange this code for an access token.

URL

Parameters

Response

By default, the response takes the following form:

3. Refresh Access Token

URL

Parameters

Response

4. Get Access Token Detail

URL

Parameters

Response

5. Use the access token to access the API

URL

Parameters

Response