Skip to main content

Installing the Glide SDK

The Glide SDK provides a unified interface for all Glide Identity services including Magical Auth.

Frontend SDK (Browser)

NPM/Yarn

npm install glide-web-client-sdk
# or
yarn add glide-web-client-sdk

CDN

<script src="https://cdn.glideidentity.com/sdk/latest/glide.min.js"></script>

Backend SDK (Server)

Node.js

npm install glide-sdk

Python

pip install glide-sdk

Java

<dependency>
<groupId>com.glideidentity</groupId>
<artifactId>glide-sdk</artifactId>
<version>1.0.0</version>
</dependency>

Go

go get github.com/glideidentity/glide-go-sdk

Configuration

Frontend - PhoneAuthClient

import { PhoneAuthClient } from 'glide-web-client-sdk';

const client = new PhoneAuthClient({
endpoints: {
prepare: '/api/phone-auth/prepare',
process: '/api/phone-auth/process'
},
debug: true // Enable debug logging
});

Backend - GlideClient

import { GlideClient } from 'glide-sdk';

const glide = new GlideClient({
apiKey: process.env.GLIDE_API_KEY,
internal: {
authBaseUrl: 'https://oidc.gateway-x.io',
apiBaseUrl: 'https://api.glideidentity.app'
}
});

Next Steps