1.0.2 • Published 10 months ago

express-passkit-webservice v1.0.2

Weekly downloads
-
License
MIT
Repository
github
Last release
10 months ago

Express Passkit WebService

Integrate Apple Wallet Web services in your current Express Js integration.

Architecture

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

It exposes a set of middlewares / routes 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 experience. It is fully compatible with Typescript.

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

Installation

$ npm install express-passkit-webservice

API Documentation

All the details are available in the project wiki.


Usage example

All the exposed middlewares work like this:

import express from "express";
import registrationRouter from "express-passkit-webservice/v1/registration.js";

const app = express();

app.use(registrationRouter({
	async onRegister(deviceLibraryIdentifier, passTypeIdentifier, serialNumber, pushToken) {
		/** your implementation */
	}
	async onUnregister(deviceLibraryIdentifier, passTypeIdentifier, serialNumber) {
		/** your implementation */
	}
}));
1.0.2

10 months ago

1.0.1

10 months ago

1.0.0

1 year ago