📁 File Manager Pro
v10.0.3 | PHP: 8.1.34
Server: Apache
2026-06-22 03:44:14
📂
/ (Root)
/
opt
/
alt
/
alt-nodejs6
/
root
/
usr
/
lib
/
node_modules
/
npm
/
node_modules.bundled
/
npm-registry-client
/
lib
📍 /opt/alt/alt-nodejs6/root/usr/lib/node_modules/npm/node_modules.bundled/npm-registry-client/lib
🔄 Refresh
✏️
Editing: authify.js
Read Only
module.exports = authify function authify (authed, parsed, headers, credentials) { if (credentials && credentials.token) { this.log.verbose('request', 'using bearer token for auth') headers.authorization = 'Bearer ' + credentials.token return null } if (authed) { if (credentials && credentials.username && credentials.password) { var username = encodeURIComponent(credentials.username) var password = encodeURIComponent(credentials.password) parsed.auth = username + ':' + password } else { return new Error( 'This request requires auth credentials. Run `npm login` and repeat the request.' ) } } }
💾 Save Changes
❌ Cancel