Jan 27, 2023
James Perkins
Refactored API keys, Gatsby V5, Dynamic documentation, and migration support for Redwood self-hosted Auth.
We've refactored our API keys to a more familiar format:
pk_test_
or pk_live_
)sk_test_
or sk_live_
)With this upgrade, we introduced a quick copy in our dashboard for each of our SDKs allowing you to move faster than ever.
Legacy keys are still available in the dashboard and can continue to be used. Once ready to upgrade, you will need to replace all the keys simultaneously, as you cannot mix the legacy keys with the new ones.
Learn more about the motivation behind our new keys.
Developer experience is huge for us here at Clerk, and with that, we want to make it easy to get started and easier to find what you are looking for.
Last week we introduced new environment-driven examples, allowing us to insert your keys into our docs. This is only in our get-started sections, but we want to add it to more places in the near future.
We spent some time improving the search and results that were returned, this has been high on our list this month, and we think the improvement already shows.
We launched a new starter repo called t3-turbo-and-clerk
For the launch, we collaborated with t3's creator, Theo Browne, to show off the simplicity of the solution. Check it out:
We updated our Gatsby plugin to support Gatsby V5. You can now access the user's authentication state on the client or the server. Below are examples of SSR and API routes:
/pages/ssr.tsx1import * as React from 'react';2import { GetServerData } from 'gatsby';3import { withServerAuth } from 'gatsby-plugin-clerk/ssr';45export const getServerData: GetServerData<any> = withServerAuth(6async props => {7return { props: { data: '1', auth: props.auth } };8},9{ loadUser: true },10);1112function SSRPage({ serverData }: any) {13return (14<main>15<h1>SSR Page with Clerk</h1>16<pre>{JSON.stringify(serverData, null, 2)}</pre>17</main>18);19}2021export default SSRPage;
/api/hello.ts1import { clerkClient, withAuth } from 'gatsby-plugin-clerk/api';23interface ContactBody {4message: string;5}67const handler = withAuth(async (req, res) => {8const users = await clerkClient.users.getUserList();9res.send({ title: `We have ${users.length} users`, message: req.body.message, auth: req.auth });10});1112export default handler;
We now support migrating users and their hashed passwords (using pbkdf2_sha1) from RedwoodJS dbAuth to Clerk using our API
Migrating for another tool? Contact support to let us know if you need us to add another hashing algorithm.
We have dropped support for Node 12 and will be only supporting Node 14 or higher.
A massive shoutout to Darlan for his first contribution to Clerk by adding a Brazilian translation
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.