hono-passkit-webservice
TypeScript icon, indicating that this package has built-in type declarations

1.0.2 • Public • Published

Hono Passkit WebService

Integrate Apple Wallet Web services in your current (or new) Hono.dev integration.

Architecture

Hono Passkit Webservice, as the name says, wraps Apple Wallet specifications into a Hono 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 hono-passkit-webservice

API Documentation

All the details are available in the project wiki.


Usage example

All the exposed middlewares work like this:

import { Hono } from "hono";
import registrationRouter from "hono-passkit-webservice/v1/registration.js";

const app = new Hono();

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

Package Sidebar

Install

npm i hono-passkit-webservice

Weekly Downloads

95

Version

1.0.2

License

MIT

Unpacked Size

15.2 kB

Total Files

19

Last publish

Collaborators

  • alexandrcerutti