Sign In

@uipath/auth

Package Overview
Dependencies
Maintainers
24
Versions
71
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install
This package has malicious versions linked to the ongoing "Mini Shai-Hulud" supply chain attack.

Affected versions:

1.0.1
View campaign page

@uipath/auth

Authentication module for the UiPath CLI. Handles OIDC login, token management, and credential storage.

latest
Source
npmnpm
Version
1.199.0
Version published
Weekly downloads
2K
115.86%
Maintainers
24
Weekly downloads
 
Created
Source

@uipath/auth

Authentication module for the UiPath CLI. Handles OIDC login, token management, and credential storage.

Installation

npm install @uipath/auth

Usage

Interactive Login

import { interactiveLogin } from "@uipath/auth";

await interactiveLogin({ file: ".uipath" });

Client Credentials (CI/CD)

import { clientCredentialsLogin } from "@uipath/auth";

const tokens = await clientCredentialsLogin({
    clientId: process.env.CLIENT_ID,
    clientSecret: process.env.CLIENT_SECRET,
});

Check Login Status

import { getLoginStatusAsync } from "@uipath/auth";

const status = await getLoginStatusAsync({ file: ".uipath" });

API

ExportDescription
interactiveLogin(options)Browser-based authorization code flow with PKCE
clientCredentialsLogin(props)Silent client credentials flow for service accounts
getLoginStatusAsync(options)Check current login status, auto-refreshes expired tokens
refreshAccessToken()Refresh an expired access token
selectTenant()Interactive tenant selection
setAuthFileConfig(cfg)Push the on-disk auth.* config slice into the auth singleton (called once by the CLI host at startup)
saveEnvFileAsync() / loadEnvFileAsync()Credential file I/O

License

See the root repository for license information.

FAQs

Package last updated on 11 Aug 2026

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts