@stackframe/stack 2.3.3 → 2.3.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +29 -0
- package/dist/lib/stack-app.js +2 -2
- package/package.json +2 -1
package/README.md
ADDED
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
# Stack
|
|
2
|
+
|
|
3
|
+
Stack is an open-source, self-hostable, and highly customizable authentication and user management system.
|
|
4
|
+
|
|
5
|
+
We provide frontend and backend libraries for Next.js, React, and JavaScript. You can set it up in one minute and scale with the project as it grows. Think of it as Supabase Auth or next-auth, but better.
|
|
6
|
+
|
|
7
|
+
## Features
|
|
8
|
+
|
|
9
|
+
- Composable React components & hooks
|
|
10
|
+
- OAuth (Google, Facebook, GitHub, etc.)
|
|
11
|
+
- Email and password authentication (with email verification and password reset)
|
|
12
|
+
- Easy to set up with proxied providers (no need to sign up and create OAuth endpoints yourself on all the providers)
|
|
13
|
+
- User management & analytics
|
|
14
|
+
- User-associated metadata with client-/server-specific permissions
|
|
15
|
+
- Out-of-the-box Dark/Light mode support
|
|
16
|
+
- suports switching out the underlying UI library, support MUI Joy out of the box
|
|
17
|
+
- **100% open-source!**
|
|
18
|
+
|
|
19
|
+
Currently, only Next.js is supported, but we are working on adding other frameworks.
|
|
20
|
+
|
|
21
|
+
## Installation
|
|
22
|
+
|
|
23
|
+
To get started with Stack, you need to [create a Next.js project](https://nextjs.org/docs/getting-started/installation) using the App router. Then, you can install Stack by running the following command:
|
|
24
|
+
|
|
25
|
+
```bash
|
|
26
|
+
npm install @stackframe/stack
|
|
27
|
+
```
|
|
28
|
+
|
|
29
|
+
For setup, refer to [our documentation](https://docs.stack-auth.com).
|
package/dist/lib/stack-app.js
CHANGED
|
@@ -36,10 +36,10 @@ function getUrls(partial) {
|
|
|
36
36
|
};
|
|
37
37
|
}
|
|
38
38
|
function getDefaultProjectId() {
|
|
39
|
-
return process.env.NEXT_PUBLIC_STACK_PROJECT_ID || throwErr("
|
|
39
|
+
return process.env.NEXT_PUBLIC_STACK_PROJECT_ID || throwErr("Welcome to Stack! It seems that you haven't provided a project ID. Please create a project on the Stack dashboard at https://app.stack-auth.com and put it in the NEXT_PUBLIC_STACK_PROJECT_ID environment variable.");
|
|
40
40
|
}
|
|
41
41
|
function getDefaultPublishableClientKey() {
|
|
42
|
-
return process.env.NEXT_PUBLIC_STACK_PUBLISHABLE_CLIENT_KEY || throwErr("
|
|
42
|
+
return process.env.NEXT_PUBLIC_STACK_PUBLISHABLE_CLIENT_KEY || throwErr("Welcome to Stack! It seems that you haven't provided a publishable client key. Please create an API key for your project on the Stack dashboard at https://app.stack-auth.com and copy your publishable client key into the NEXT_PUBLIC_STACK_PUBLISHABLE_CLIENT_KEY environment variable.");
|
|
43
43
|
}
|
|
44
44
|
function getDefaultSecretServerKey() {
|
|
45
45
|
return process.env.STACK_SECRET_SERVER_KEY || throwErr("No secret server key provided. Please copy your publishable client key from the Stack dashboard and put your it in the STACK_SECRET_SERVER_KEY environment variable.");
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@stackframe/stack",
|
|
3
|
-
"version": "2.3.
|
|
3
|
+
"version": "2.3.4",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"exports": {
|
|
6
6
|
".": {
|
|
@@ -12,6 +12,7 @@
|
|
|
12
12
|
"default": "./dist/joy.js"
|
|
13
13
|
}
|
|
14
14
|
},
|
|
15
|
+
"homepage": "https://stack-auth.com",
|
|
15
16
|
"files": [
|
|
16
17
|
"README.md",
|
|
17
18
|
"dist"
|