Skip to main content

Add Phone Authentication to Your Go Backend

Set up carrier-grade phone authentication in your Go API using the Glide Go SDK.

1

Install the SDK

Install the Glide Go SDK.

2

Initialize the Client

Create a GlideClient with your API key and optional settings.

3

Create API Handlers

Create handlers for the frontend SDK endpoints:

  • Prepare - Initializes the auth session
  • Process - Routes to VerifyPhoneNumber() or GetPhoneNumber()
4

Error Handling

Handle SDK-specific errors using the glide.Error type.

5

Set Up Routes

Register your handlers and start the server.

go get github.com/GlideIdentity/glide-be-sdk-go
Read-only