@reflowhq/auth-next

2.0.4 • Public • Published

Reflow Auth-Next

This is a library for adding user accounts and subscriptions to any Next.js app using Reflow.

Main Features

  • Adds user accounts (both username+password and social sign in), authorization and subscriptions (with Stripe or Paddle) to any Next.js project.
  • Can be used to restrict access and enforce limits with feature flags and rate limits.
  • Works on both the Node.js and Edge runtimes.
  • Stores session data in a securely encrypted http-only cookie.
  • Can be used as a general Next.js session library for storing arbitrary data, so it replaces iron-session and others.
  • Works in both client and server components.
  • Simple to setup and integrate.

Installation

The library is compatible with all Next.js projects running Next.js 13 and up. It works with both the App Router and Pages Router.

You can install it using npm or another package manager of your choice.

npm install @reflowhq/auth-next

Documentation

You can find the full Reflow Auth Next documentation here.

Visit the Getting Started guide for a quick overview.

All of the methods and class options are available in the API reference docs.

For more details and advanced examples, you can check out:

We also post full tutorials on the Reflow blog.

License

Released under the MIT license. (c) Reflow HQ

Package Sidebar

Install

npm i @reflowhq/auth-next

Weekly Downloads

65

Version

2.0.4

License

MIT

Unpacked Size

303 kB

Total Files

17

Last publish

Collaborators

  • martinaglv