Mar 17, 2023
James Perkins
You can find us at clerk.com, sign in with Linear, add scopes to users, beta docs updates
You may have noticed, or maybe you didn't! We now are on clerk.com
Currently our clerk.dev website is redirecting to clerk.com, however in the future we want to do something with the domain. If you have any ideas, we loved to hear them!
We understand sometimes you need to elevate user scopes after a user is in your application, and sometimes it's based on the users roles or subscription status. This week we introduced a way to to request additional OAuth scopes, and show the user that attention is needed. Below are some examples of how to implement it.
If you are using our <UserButton/>
component you can pass in the userProfileProps
along with the provider and the additional scopes.
1<UserButton userProfileProps={{2additionalOAuthScopes:{3twitch: ["user:read:follows"]4}5}}/>
If you are mounting the <UserProfile/>
in your application you can pass the same props
1<UserProfile additionalOAuthScopes={{2twitch: ["user:read:follows"]3}}/>
Below is what a user will see when the need to reauthorize your new scopes.
If you are using hooks and building our your own UIs you can use the useUser
hook to make the user reauthorize.
1const handleClick = async () => {2if (!isLoaded || !isSignedIn) {3return null;4}5user.verifiedExternalAccounts6.find((oauth) => oauth.provider === "twitch")7.reauthorize({8additionalScopes: ["user:read:follows"],9redirectUrl: "/protected",10})11.then((res) => {12// open the URL in a new tab generated by Twitch13window.open(res.verification?.externalVerificationRedirectURL);14})15.catch((err) => {16console.log(err);17});18};
This had to be one of our biggest requested OAuth providers in the last few weeks, and it's finally here. You can now have your users log in using their linear account. Just enable it in the dashboard and start building!
We have supported Spotify for a while but it was something we manually enabled as it doesn't support our usual developer shared credentials. We have now opened this up so anyone with their own Spotify credentials can use it.
I have been writing non stop since we last spoke, we have had great feedback from the community and that feedback has been rolled into the documentation.
Just today I introduced the Expo quickstart guide, this quickstart guide covers:
You can check out all the new updates at https://clerk.com/docs
Start completely free for up to 5,000 monthly active users and up to 10 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.