@cpod/sdk - v0.2.7
    Preparing search index...

    Function authenticateUser

    • Authenticate user with username and password

      Parameters

      • credentials: LoginCredentials

        Login credentials containing username and password

      Returns Promise<AuthTokens>

      Authentication tokens (access_token, refresh_token)

      401 - Invalid credentials

      import { authenticateUser } from "@cpod/sdk";

      const tokens = await authenticateUser({
      username: "user@example.com",
      password: "password",
      });