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 @glideidentity/web-client-sdk
# or
yarn add @glideidentity/web-client-sdk
CDN
<script src="https://unpkg.com/@glideidentity/web-client-sdk/dist/browser/web-client-sdk.min.js"></script>
Backend SDKs
Node.js
npm install @glideidentity/glide-sdk
Go
go get github.com/GlideIdentity/glide-be-sdk-go
Java
// Gradle
implementation 'com.glideidentity:glide-be-sdk-java:4.1.0'
<!-- Maven -->
<dependency>
<groupId>com.glideidentity</groupId>
<artifactId>glide-be-sdk-java</artifactId>
<version>4.1.0</version>
</dependency>
Python
Available exclusively on demand for enterprise customers. Contact us for access.
Configuration
Frontend - PhoneAuthClient
import { PhoneAuthClient } from '@glideidentity/web-client-sdk';
const client = new PhoneAuthClient({
endpoints: {
prepare: '/api/phone-auth/prepare',
process: '/api/phone-auth/process'
},
debug: true // Enable debug logging
});
Backend - Node.js
import { GlideClient } from '@glideidentity/glide-sdk';
const glide = new GlideClient({
apiKey: process.env.GLIDE_API_KEY
});
Backend - Go
import glide "github.com/GlideIdentity/glide-be-sdk-go"
client := glide.New(
glide.WithAPIKey(os.Getenv("GLIDE_API_KEY")),
)
Backend - Java
import com.glideidentity.GlideClient;
GlideClient glide = new GlideClient(System.getenv("GLIDE_API_KEY"));