Speckle Auth Izipizi

Hey guys,

I built an NPM package to make the process of authenticating apps with Speckle easier. It handles the OAuth process and I tried it hard to make it as simple as possible. I’d appreciate if you could give it a spin and write me any feedback you have.

Here’s a link:

import { SpeckleAuthClient, type ApplicationOptions } from 'speckle-auth';

const options: ApplicationOptions = {
  clientId: 'your-client-id',
  clientSecret: 'your-client-secret',
  serverUrl: 'https://app.speckle.systems',
};
const speckle = new SpeckleAuthClient(options);

async function authenticateUser() {
  const user = await speckle.user();
  if (!user) {
    await speckle.login();
  }
  return user;
}

async function logoutUser() {
  await speckle.logout();
}
7 Likes

Feb-06-2025 18-02-43

6 Likes

MVP!! :spockle_joy:

2 Likes

Vue has changed soooooo much since I last used it!

1 Like

wow that was quick!

1 Like