Clerk logo

Clerk Docs

Ctrl + K
Go to clerkstage.dev

Getting started with Go

The source: https://github.com/clerkinc/clerk-sdk-go

Overview

Clerk's Go SDK is a thin wrapper over our Backend API. Add the following import statement:

import "github.com/clerkinc/clerk-sdk-go/clerk"

Go doesn't automatically add the module, you can explicitly add it with:

$ go get github.com/clerkinc/clerk-sdk-go

Clerk client

Now, you can create a Clerk client by calling the clerk.NewClient function. This function requires your Clerk secret key. You can get this from the dashboard of your Clerk application in Settings > API Keys.

Then create a client object to use the various services Clerk provides.

.env
1

Was this helpful?

Clerk © 2023