authkit-nextjs

(★ 152)

The WorkOS library for Next.js provides convenient helpers for authentication and session management using WorkOS & AuthKit with Next.js.

File Explorer

  • .eslintignore
  • .eslintrc.cjs
  • .gitignore
  • .oxfmtrc.json
  • .oxlintrc.json
  • .release-please-manifest.json
  • CHANGELOG.md
  • context7.json
  • LICENSE
  • package.json
  • pnpm-lock.yaml
  • pnpm-workspace.yaml
  • README.md
  • release-please-config.json
  • renovate.json
  • tsconfig.app.json
  • tsconfig.base.json
  • tsconfig.json
  • tsconfig.test.json
  • vitest.config.ts
  • vitest.server-only-stub.ts
  • vitest.setup.ts

# Use via CDN

jsDelivr

jsDelivr serves any public GitHub repository as a CDN with zero setup. Pick a version and a file to get a ready-to-paste link and snippet.

Command Glossary

Commands referenced in this DOCs, explained below.

🔍

openssl rand

View Details ▼

Generate random bytes using a cryptographically secure PRNG.

openssl rand -hex 8

Generate an 8-byte (16 characters) hex string and write it to `stdout`:

openssl rand -base64 20

Generate 20 random bytes encoded in base64:

openssl rand -out {{path/to/file}} {{length}}

Generate random bytes and write them to a file (without encoding):

🔍

openssl

View Details ▼

OpenSSL cryptographic toolkit.
Some subcommands such as `req` have their own usage documentation.

openssl genpkey -algorithm {{rsa|ec}} -out {{path/to/private.key}} -aes256

Generate a private key and encrypt the output file using AES-256:

openssl rsa -in {{path/to/private.key}} -pubout -out {{path/to/public.key}}

Generate the corresponding public key from the private key `private.key` using `rsa`:

openssl req -new -x509 -key {{path/to/private.key}} -out {{path/to/certificate.crt}} -days 365

Generate a self-signed certificate valid for a specified number of days (365):

🔍

pnpm

View Details ▼

Fast, disk space efficient package manager for Node.js.
Manage Node.js projects and their module dependencies.

pnpm init

Create a `package.json` file:

pnpm {{[i|install]}}

Download all the packages listed as dependencies in `package.json`:

pnpm add {{module_name}}@{{version}}

Download a specific version of a package and add it to the list of dependencies in `package.json`:

🔍

yarn

View Details ▼

JavaScript and Node.js package manager alternative.

yarn global add {{module_name}}

Install a module globally:

yarn install

Install all dependencies referenced in the `package.json` file (the `install` is optional):

yarn add {{module_name}}@{{version}}

Install a module and save it as a dependency to the `package.json` file (add `--dev` to save as a dev dependency):

// repository documentation