JSPM

remix-auth-notion

1.0.0
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 1
  • Score
    100M100P100Q12650F
  • License MIT

Package Exports

  • remix-auth-notion
  • remix-auth-notion/build/index.js

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (remix-auth-notion) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

NotionStrategy

Allow users to login with Notion.

Setup your application at Notion integrations

Supported runtimes

Runtime Has Support
Node.js
Cloudflare

How to use

Notion requires that the callbackURL uses HTTPS. In development you can use a service like ngrok to be able to test the integration.

let notionStrategy = new NotionStrategy(
  {
    clientID: "",
    clientSecret: "",
    callbackURL: "https://domain-name.com/auth/notion/callback",
  },
  async ({ accessToken, extraParams, profile }) => {
    return {
      accessToken,
      id: profile.id,
      name: profile.name,
    };
  }
);

authenticator.use(notionStrategy);