Skip to content

Commit

Permalink
PortierClient as default export
Browse files Browse the repository at this point in the history
  • Loading branch information
stephank committed Nov 10, 2023
1 parent 38143b0 commit aafbef5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ A [Portier] client library for Node.js
```js
import Fastify from "fastify";
import formPlugin from "@fastify/formbody";
import { PortierClient } from "portier";
import PortierClient from "portier";

const portier = new PortierClient({
redirectUri: "http://localhost:8000/verify",
Expand Down
3 changes: 2 additions & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
export { default as PortierClient } from "./client.js";
import PortierClient from "./client.js";
export default PortierClient;
export { default as AbstractStore } from "./store.js";
export { default as MemoryStore } from "./stores/memory.js";
export { default as normalize } from "./normalize.js";

0 comments on commit aafbef5

Please sign in to comment.