@valon-technologies/gestalt
    Preparing search index...

    Function defineAuthenticationProvider

    • Creates an authentication provider with the standard Gestalt runtime contract.

      Returns AuthenticationProvider

      import { defineAuthenticationProvider } from "@valon-technologies/gestalt";

      export const authentication = defineAuthenticationProvider({
      displayName: "Example Authentication",
      async beginLogin(request) {
      return {
      authorizationUrl: new URL("/login", request.callbackUrl).toString(),
      };
      },
      async completeLogin() {
      return { subject: "usr_123", email: "user@example.com" };
      },
      });