@suluk/platform - v0.6.0
    Preparing search index...

    Variable authServiceConst

    authService: {
        id: "auth";
        mount: { kind: "middleware"; symbol: "mountAuthRoutes"; from: "./auth" };
        provision: { symbol: "authProvision"; from: "./src/provision/auth" };
        deps: [
            "better-auth",
            "@better-auth/api-key",
            "@better-auth/passkey",
            "@suluk/better-auth",
        ];
        env: [
            {
                name: "BETTER_AUTH_SECRET";
                required: true;
                secret: true;
                generated: true;
                hint: "session-signing key — AUTO-GENERATED by `bun run provision` (32 random bytes); no need to supply it";
            },
            {
                name: "BETTER_AUTH_URL";
                hint: "your deployed origin, e.g. https://api.example.com";
            },
            {
                name: "GOOGLE_CLIENT_ID";
                secret: true;
                hint: "optional — enables Google sign-in";
            },
            {
                name: "GOOGLE_CLIENT_SECRET";
                secret: true;
                hint: "optional — pairs with GOOGLE_CLIENT_ID";
            },
        ];
        serviceOpts: Schema<AuthServiceOpts>;
        compose: {
            exposes: {
                onUserCreated: {
                    kind: "port";
                    hookOptKey: "onUserCreated";
                    render: (exprs: string[]) => string;
                };
            };
        };
    } = ...

    Type Declaration

    • Readonlyid: "auth"
    • Readonlymount: { kind: "middleware"; symbol: "mountAuthRoutes"; from: "./auth" }
    • Readonlyprovision: { symbol: "authProvision"; from: "./src/provision/auth" }
    • Readonlydeps: [
          "better-auth",
          "@better-auth/api-key",
          "@better-auth/passkey",
          "@suluk/better-auth",
      ]
    • Readonlyenv: [
          {
              name: "BETTER_AUTH_SECRET";
              required: true;
              secret: true;
              generated: true;
              hint: "session-signing key — AUTO-GENERATED by `bun run provision` (32 random bytes); no need to supply it";
          },
          {
              name: "BETTER_AUTH_URL";
              hint: "your deployed origin, e.g. https://api.example.com";
          },
          {
              name: "GOOGLE_CLIENT_ID";
              secret: true;
              hint: "optional — enables Google sign-in";
          },
          {
              name: "GOOGLE_CLIENT_SECRET";
              secret: true;
              hint: "optional — pairs with GOOGLE_CLIENT_ID";
          },
      ]
    • ReadonlyserviceOpts: Schema<AuthServiceOpts>
    • Readonlycompose: {
          exposes: {
              onUserCreated: {
                  kind: "port";
                  hookOptKey: "onUserCreated";
                  render: (exprs: string[]) => string;
              };
          };
      }