Releases: clerk/clerk-sdk-go
Added operations for Diahook webhooks
This release adds three operations in the SDK:
- CreateDiahook: Creates a new Diahook app for the given instance
- RefreshDiahookURL: Returns a newly generated url for access to Diahook's management UI for the specific app
- DeleteDiahook: Deletes the Diahook app associated with the given instance
Simplify client cookie verification process
The backend API now returns all the client's sessions along with the client when verifying a client cookie.
This simplified the verification process on the SDK side, since there is no need for two API calls when verifying the client cookie.
Custom attributes on users
Users can now have custom attributes. These can be either private (using the private_metadata
field) or public (via the public_metadata
field).
Simplified verification logic, handle Clerk error responses
The verification logic is now simplified. It relies solely on the existence of the _clerk_session_id
to determine whether it will use a particular session or the last active one.
Also, the SDK can now handle the new Clerk's error response structure.
Made URL resolution more robust
v1.0.4 feature: Allow users to specify custom HTTP clients if they want to
Added WithSession middleware
Added Go middleware that can inject the active session into the context.
Changed module name
Changed module name from clerk_server_sdk_go
to clerk-sdk-go
Made module go-gettable
Fixed module path to make it go-gettable.
Go SDK for Clerk
Initial release which provides access to the following areas of the API:
- Users
- Sessions
- Emails
- SMS
For more information about the API, please refer to the Server-API Docs.
For more information about the SDK itself, please refer to the README