
Security News
Deno 2.2 Improves Dependency Management and Expands Node.js Compatibility
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
@vonage/auth-client-sdk
Advanced tools
Auth client SDK is built to formalize and normalize various client side operations regarding the auth logic, like verifying user being logged in, token operations etc.
Auth client SDK is built to formalize and normalize various client side operations regarding the auth logic, like verifying user being logged in, token operations etc.
SDK is served from Vonage's CDN. Its APIs to be imported directly over the network, for example:
import { VBCAuthVault } from 'https://sdk.auth.vonage.com/1.2.3/main.js';
or, most likely, as a dynamic import:
const VBCAuthVault = (await import('https://sdk.auth.vonage.com/1.2.3/main.js')).VBCAuthVault;
Note: an exact version (
1.2.3
in the examples above) will always match the (last portion of the) deployed version tag. See this repo's relevant tags or consult with the Cerberus team for the suitable version.
CI verification will run on any PR opened against develop branch.
CD process is tightly coupled with the overall SDK's architecture.
SDK, is a 2nd party library. Yet, specifics of it require at least some of its parts to be served from CDN.
Thus SDK is being deployed to CDN anyhow and can be consumed via static/dynamic https
import like an examples above.
This is the most preferred and safest way to use SDK.
In some cases, WebPack stuff, it is not going to work, so the exact symmetric version of SDK is also published to npm
and can be consumed from the node_modules
.
Note, that even in this case some parts of SDK will be pulled over the network.
Vault part of SDK allows to securily store key/value pairs.
The values will be stored under auth own domain, which in turn will only be allowed to load from a narrow list of allowed consuming domains.
For a full usage example see this snippet.
VBCAuthVault
VBCAuthVault {
static getInstance(): VBCAuthVault;
store(key: string, value: string): Promise<VaultMessage>;
retrieve(key: string): Promise<VaultMessage>;
remove(key: string): Promise<VaultMessage>;
}
VaultMessage
VaultMessage {
key: string;
value: string | null;
error: string | null;
}
key
of the requested operationvalue
in case of retrieve
, else null
error
in case of any error, else null
FAQs
Auth client SDK is built to formalize and normalize various client side operations regarding the auth logic, like verifying user being logged in, token operations etc.
The npm package @vonage/auth-client-sdk receives a total of 21 weekly downloads. As such, @vonage/auth-client-sdk popularity was classified as not popular.
We found that @vonage/auth-client-sdk demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 51 open source maintainers collaborating on the project.
Did you know?
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.
Security News
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
Security News
React's CRA deprecation announcement sparked community criticism over framework recommendations, leading to quick updates acknowledging build tools like Vite as valid alternatives.
Security News
Ransomware payment rates hit an all-time low in 2024 as law enforcement crackdowns, stronger defenses, and shifting policies make attacks riskier and less profitable.