Skip to main content

Load API keys

Ensure you have Prove Sandbox credentials from the Developer Portal. To access the Prove API, use your OAuth 2.0 client ID and client secret. You can load these from environment variables or another method:
clientID := os.Getenv("PROVE_CLIENT_ID")
clientSecret := os.Getenv("PROVE_CLIENT_SECRET")

proveEnv := "uat-us" // Use UAT in US region.

client := provesdkservergo.New(
	provesdkservergo.WithServer(proveEnv),
	provesdkservergo.WithSecurity(components.Security{
		ClientID:     provesdkservergo.String(clientID),
		ClientSecret: provesdkservergo.String(clientSecret),
	}),
)

Install server-side SDK

Install the server-side SDK of your choice by running a command in your terminal, or by using a dependency management tool specific to your project.
# The Go library is hosted on GitHub so you can use this command to import it
# to your Go application.
go get github.com/prove-identity/prove-sdk-server-go

# Ensure you import the SDK in your code like this:
import (
	provesdkservergo "github.com/prove-identity/prove-sdk-server-go"
	"github.com/prove-identity/prove-sdk-server-go/models/components"
)

Install client-side SDK

Install the client-side SDK of your choice by running a command in your terminal, or by using a dependency management tool specific to your project.
  • Web SDK
  • Android SDK
  • iOS SDK
# Run this command to install the package (ensure you have the latest version).
npm install @prove-identity/prove-auth@2.8.2
I