Security News
GitHub Removes Malicious Pull Requests Targeting Open Source Repositories
GitHub removed 27 malicious pull requests attempting to inject harmful code across multiple open source repositories, in another round of low-effort attacks.
@acceleratxr/core_sdk
Advanced tools
Client SDK for working with AcceleratXR powered services.
yarn add @acceleratxr/core_sdk
npm i @acceleratxr/core_sdk
To setup and initilize the SDK...
const { Configuration, CoreSDK } = require("@acceleratxr/core_sdk");
var config = new Configuration({
baseUrl: "http://localhost:3000",
});
var sdk = new CoreSDK(config);
import { Configuration, CoreSDK } from "@acceleratxr/core_sdk";
const config: Configuration = new Configuration({
baseUrl: "http://localhost:3000",
});
const sdk: CoreSDK = CoreSDK(config);
To register a new user account...
const { Profile, User } = require("@acceleratxr/core_sdk");
var user = new User({
name: "username",
givenName: "John",
familyName: "Smith",
email: "john.smith@gmail.com"
});
user = await sdk.registerUser(user);
// or
user = await sdk.registerUserAndPassword(user, "password");
import { Profile, User } from "@acceleratxr/core_sdk";
let user: User = new User({
name: "username",
givenName: "John",
familyName: "Smith",
email: "john.smith@gmail.com"
});
user = await sdk.registerUser(user);
// or
user = await sdk.registerUserAndPassword(user, "password");
const { User } = require("@acceleratxr/core_sdk");
await sdk.loginDevice();
var user = sdk.loggedInUser;
import { User } from "@acceleratxr/core_sdk";
await sdk.loginDevice();
const user: User = sdk.loggedInUser;
To authenticate using basic username and password...
const { User } = require("@acceleratxr/core_sdk");
sdk.onAuthChallenge = async () => {
// Capture TOTP code from user
return totp;
}
await sdk.loginPassword("username","password");
var user = sdk.loggedInUser;
import { User } from "@acceleratxr/core_sdk";
sdk.onAuthChallenge = async () => {
// Capture TOTP code from user
return totp;
}
await sdk.loginPassword("username","password");
var user = sdk.loggedInUser;
To authenticate using password-less login via e-mail or phone...
const { User } = require("@acceleratxr/core_sdk");
await sdk.loginEmail("username");
// or
await sdk.loginPhone("username");
// Wait for user input of code
await sdk.loginEmail("username","code");
// or
await sdk.loginPhone("username", "code");
var user = sdk.loggedInUser;
import { User } from "@acceleratxr/core_sdk";
await sdk.loginEmail("username");
// or
await sdk.loginPhone("username");
// Wait for user input of code
await sdk.loginEmail("username","code");
// or
await sdk.loginPhone("username", "code");
const user: User = sdk.loggedInUser;
To authenticate using an OAuth compatible single-sign on provider...
const { User } = require("@acceleratxr/core_sdk");
// Retrieve the auth URL of the OAuth provider
var url = await sdk.requestOAuth2(OAuth2Provider.DISCORD);
// Redirect user to URL and await callback return
await sdk.loginOAuth2(OAuth2Provider.DISCORD, code);
var user = sdk.loggedInUser;
import { User } from "@acceleratxr/core_sdk";
// Retrieve the auth URL of the OAuth provider
var url = await sdk.requestOAuth2(OAuth2Provider.DISCORD);
// Redirect user to URL and await callback return
await sdk.loginOAuth2(OAuth2Provider.DISCORD, code);
const user: User = sdk.loggedInUser;
This software is licensed under a custom XBE EULA. By using it, you agree to the terms.
FAQs
Unknown package
The npm package @acceleratxr/core_sdk receives a total of 323 weekly downloads. As such, @acceleratxr/core_sdk popularity was classified as not popular.
We found that @acceleratxr/core_sdk demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 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
GitHub removed 27 malicious pull requests attempting to inject harmful code across multiple open source repositories, in another round of low-effort attacks.
Security News
RubyGems.org has added a new "maintainer" role that allows for publishing new versions of gems. This new permission type is aimed at improving security for gem owners and the service overall.
Security News
Node.js will be enforcing stricter semver-major PR policies a month before major releases to enhance stability and ensure reliable release candidates.