improved

Enhancement to NestJS Demo App

The NestJS Demo App is now using version 1.0.0-rc12 of the nestjs-auth SDK. It demonstrates the new SDK auto-configuration capability. Now, only 3 fields are required when initializing the SDK in this demo app: wristbandApplicationVanityDomain, clientId, and clientSecret.

import { AuthConfig } from '@wristband/nestjs-auth';
import { registerAs } from '@nestjs/config';

// Make sure your config values match what you configured in Wristband.
export default registerAs(
  'wristbandAuth',
  (): AuthConfig => ({
    clientId: "--your-client-id--",
    clientSecret: "--your-client-secret--",
    wristbandApplicationVanityDomain: "auth.yourapp.io",
  }),
);