
Security News
Axios Supply Chain Attack Reaches OpenAI macOS Signing Pipeline, Forces Certificate Rotation
OpenAI rotated macOS signing certificates after a malicious Axios package reached its CI pipeline in a broader software supply chain attack.
exponent-server-sdk
Advanced tools
Server side library for working with Exponent using Node.js
yarn add exponent-server-sdk
import Expo from 'exponent-server-sdk';
// To check if something is a push token
let isPushToken = Expo.isExponentPushToken(somePushToken);
// Create a new Expo SDK client
let expo = new Expo();
// To send push notifications -- note that there is a limit on the number of
// notifications you can send at once, use expo.chunkPushNotifications()
(async function() {
try {
let receipts = await expo.sendPushNotificationsAsync([{
// The push token for the app user to whom you want to send the notification
to: 'ExponentPushToken[xxxxxxxxxxxxxxxxxxxxxx]',
sound: 'default',
body: 'This is a test notification',
data: {withSome: 'data'},
}]);
console.log(receipts);
} catch (error) {
console.error(error);
}
})();
The source code is in the src/ directory and babel is used to turn it into ES5 that goes in the build/ directory.
To build, npm run build.
To build and watch for changes, npm run watch.
FAQs
Server side library for working with Expo using Node.js
The npm package exponent-server-sdk receives a total of 18 weekly downloads. As such, exponent-server-sdk popularity was classified as not popular.
We found that exponent-server-sdk demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 3 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
OpenAI rotated macOS signing certificates after a malicious Axios package reached its CI pipeline in a broader software supply chain attack.

Security News
Open source is under attack because of how much value it creates. It has been the foundation of every major software innovation for the last three decades. This is not the time to walk away from it.

Security News
Socket CEO Feross Aboukhadijeh breaks down how North Korea hijacked Axios and what it means for the future of software supply chain security.