Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

fastify-passkit-webservice

Package Overview
Dependencies
Maintainers
0
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

fastify-passkit-webservice

Fastify integration of Apple Wallet web services

  • 1.4.2
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
1
decreased by-99.3%
Maintainers
0
Weekly downloads
 
Created
Source

Fastify Passkit WebService

Integrate Apple Wallet Web services in your current fastify integration.

Architecture

Fastify Passkit Webservice, as the name says, wraps Apple Wallet specifications into a Fastify integration.

It exposes a set of plugins that will let yourself to dedicate exclusively to the integration of the business logic.

Each plugin represents a subscription to an endpoint defined in Apple Wallet Developer Documentation.

Everything is designed to provide a good developer esperience. It is fully compatible with Typescript.

This package is an integration of passkit-webservice-toolkit. Visit it for other integrations.

Installation

$ npm install fastify-passkit-webservice

API Documentation

All the details are available in the dedicated project wiki page.


Usage example

All the exposed middlewares work like this:

import Fastify from "fastify";

const app = Fastify();

app.register(import("../lib/plugins/v1/registration.js"), {
	async onRegister(
		deviceLibraryIdentifier,
		passTypeIdentifier,
		serialNumber,
		pushToken,
	) {
		/** your implementation */
	},
	async onUnregister(
		deviceLibraryIdentifier,
		passTypeIdentifier,
		serialNumber,
	) {
		/** your implementation */
	},
	async tokenVerifier(token) {
		/** your implementation */
	},
});

Give a look at specs/server.mjs for fully example.

Keywords

FAQs

Package last updated on 25 Dec 2024

Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc