Apr 16, 2022
Colin Sidoti
This week we launched alpha support for authenticating Gatsby SSR, webhooks and metadata for Clerk-managed organizations, and improved observability.
It's been a very wide-ranging week at Clerk, as we've added and improved features across many different parts of the product.
Hot off the press! Today we launched an alpha version of SSR support for Gatsby. It's been a real treat putting this together so quickly after receiving the request through Github
The new version is tagged 3.0.0-alpha.2, and available as gatsby-plugin-clerk on npm
The usage is not documented yet, but it's really simple. Just use our withServerAuth
wrapper, and pull the authentication context from props
:
import { withServerAuth } from "gatsby-plugin-clerk/ssr"export const getServerData = withServerAuth(async props => {const { userId, sessionId, getToken } = props.auth;return { props: { message: '' } };});
Note: this release does not support authentication in Gatsby Functions yet. Support will be added for version 3 reaches general availability.
The reception of our new Organization object has been incredible - with a few developers already using the functionality in production.
This week we launched two new features associated with organizations:
The Svix webhook integration in Clerk's dashboard now has events for:
Developers can now attach public and private metadata to the Organization object, just like they can for the User object.
Observability has become a focal point for our SDKs. We're working to improve our errors so they guide developers to the right solution.
This week we added observability of the "authentication result" to two more contexts:
More to come soon!
Start completely free for up to 10,000 monthly active users and up to 100 monthly active orgs. No credit card required.
Learn more about our transparent per-user costs to estimate how much your company could save by implementing Clerk.
The latest news and updates from Clerk, sent to your inbox.