You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<palign="center">Password protect your Next.js deployments. <ahref="http://next-password-protect.vercel.app/"target="_blank">View demo</a> (Password is <b>secret</b>)</p>
@@ -39,9 +39,9 @@ This library adds a password prompt to your Next.js deployment. It consists of t
39
39
## Installation
40
40
41
41
```sh
42
-
yarn add @storyofams/next-password-protect
42
+
yarn add next-password-protect
43
43
# or
44
-
npm install @storyofams/next-password-protect
44
+
npm install next-password-protect
45
45
```
46
46
47
47
## Usage
@@ -66,7 +66,7 @@ module.exports = {
66
66
Add two api routes, one with the `loginHandler` and one with the `passwordCheckHandler` api function. You can name them anything, as long as you pass the names to `loginApiUrl` and `checkApiUrl` respectively, in the next step. By default it expects `/login` and `/passwordCheck`.
0 commit comments