Authentication

Login to Bytesafe with your npm, yarn or pnpm client.

To access your private Bytesafe registries you will need to authenticate. If you are working with a CI/CD pipeline, we suggest that you read how to manage tokens.

These steps assume you already have an account. If don’t have an account, read the Getting started to get up and running in less than a minute.

Login to Bytesafe and authenticate

To access your registry using npm, yarn or pnpm, first login using your Bytesafe registry credentials (available in the Bytesafe web console).

After login, tokens are stored in the file .npmrc which is used by all the common clients.

Make sure authentication credentials are always sent to the Bytesafe server with

npm config set always-auth true

Login to your private Bytesafe registry

npm --registry 'https://example.bytesafe.dev/r/default/' login

You will be prompted for the user name, password and an email address. The email address is not used by Bytesafe, but is required by the clients.

Username: bytesafe
Password:
Email(this IS public): example@example.com
Logged in as bytesafe on https://example.bytesafe.dev/r/default/.

Make sure authentication credentials are always sent to the Bytesafe server with

npm config set always-auth true

Login to your private Bytesafe registry

npm --registry 'https://example.bytesafe.dev/r/default/' login

You will be prompted for the user name, password and an email address. The email address is not used by Bytesafe, but is required by the clients.

Username: bytesafe
Password:
Email(this IS public): example@example.com
Logged in as bytesafe on https://example.bytesafe.dev/r/default/.

Make sure authentication credentials are always sent to the Bytesafe server with

npm config set always-auth true

Login to your private Bytesafe registry

pnpm login --registry 'https://example.bytesafe.dev/r/default/'

You will be prompted for the user name, password and an email address. The email address is not used by Bytesafe, but is required by the clients.

Username: bytesafe
Password:
Email(this IS public): example@example.com
Logged in as bytesafe on https://example.bytesafe.dev/r/default/.

Managing tokens

How to manage your tokens. Learn how to list, create and revoke tokens.