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/glide-fe-sdk-web
# or
yarn add @glideidentity/glide-fe-sdk-web
CDN
<script src="https://unpkg.com/@glideidentity/glide-fe-sdk-web/dist/browser/web-client-sdk.min.js"></script>
React Native
npm install @glideidentity/glide-fe-sdk-react-native
For offline install patterns (vendor-hosted tarball, SHA-256 checksum), contact your Glide integration lead. Full integration notes: React Native quickstart.
Android (Native)
Gradle (Kotlin DSL — app/build.gradle.kts):
dependencies {
implementation("com.glideidentity:glide-fe-sdk-android:1.0.0")
}
Gradle (Groovy — app/build.gradle):
dependencies {
implementation 'com.glideidentity:glide-fe-sdk-android:1.0.0'
}
Requirements: minSdk = 23 (Android 6+). TS43 strategy uses the Android Digital Credentials API (Android 9+ / API 28, Google Play Services 24.0+, registered carrier credential provider). compileSdk 35 is required by the androidx.credentials library.
For air-gapped CI, contact your Glide integration lead for a vendor-hosted AAR with a SHA-256 sidecar. Full integration notes: Android quickstart.
Backend SDKs
Node.js
npm install @glideidentity/glide-be-node-magical-auth
Go
go get github.com/GlideIdentity/glide-be-sdk-go
Java
// Gradle
implementation 'com.glideidentity:glide-be-java-magical-auth:1.0.0'
<!-- Maven -->
<dependency>
<groupId>com.glideidentity</groupId>
<artifactId>glide-be-java-magical-auth</artifactId>
<version>1.0.0</version>
</dependency>
Python
Available exclusively on demand for enterprise customers. Contact us for access.
Configuration
Frontend - PhoneAuthClient
import { PhoneAuthClient } from '@glideidentity/glide-fe-sdk-web';
const client = new PhoneAuthClient({
endpoints: {
prepare: '/api/phone-auth/prepare',
process: '/api/phone-auth/process'
}
});
React Native — PhoneAuthClient
import { PhoneAuthClient } from '@glideidentity/glide-fe-sdk-react-native';
const glide = new PhoneAuthClient({
endpoints: {
prepare: 'https://your-backend.example.com/api/phone-auth/prepare',
process: 'https://your-backend.example.com/api/phone-auth/process',
reportInvocation: 'https://your-backend.example.com/api/phone-auth/report-invocation',
},
debug: __DEV__,
});
Android — Glide client
import com.glideidentity.fe.sdk.android.Glide
import com.glideidentity.fe.sdk.android.ClientConfig
val client = Glide.createClient(
context = applicationContext,
baseUrl = "https://your-backend.example.com",
clientConfig = ClientConfig(
prepareEndpoint = "/api/phone-auth/prepare",
processEndpoint = "/api/phone-auth/process",
reportInvocationEndpoint = "/api/phone-auth/report-invocation",
),
)
// Then, inside an Activity / Fragment, before authenticate():
client.setActivityContext(this)
Backend - Node.js
import { MagicalAuthClient } from '@glideidentity/glide-be-node-magical-auth';
const glide = new MagicalAuthClient({
clientId: process.env.GLIDE_CLIENT_ID,
clientSecret: process.env.GLIDE_CLIENT_SECRET
});
Backend - Go
import glide "github.com/GlideIdentity/glide-be-sdk-go"
client := glide.New(
glide.WithClientCredentials(
os.Getenv("GLIDE_CLIENT_ID"),
os.Getenv("GLIDE_CLIENT_SECRET"),
),
)
Backend - Java
import com.glideidentity.magicalauth.MagicalAuthClient;
MagicalAuthClient client = MagicalAuthClient.builder()
.clientId(System.getenv("GLIDE_CLIENT_ID"))
.clientSecret(System.getenv("GLIDE_CLIENT_SECRET"))
.build();