@stackframe/stack 2.3.2 → 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.d.ts +1 -0
- package/dist/lib/stack-app.js +3 -2
- package/package.json +3 -2
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.d.ts
CHANGED
|
@@ -108,6 +108,7 @@ export type Project = {
|
|
|
108
108
|
readonly id: string;
|
|
109
109
|
readonly allowLocalhost: boolean;
|
|
110
110
|
readonly credentialEnabled: boolean;
|
|
111
|
+
readonly magicLinkEnabled: boolean;
|
|
111
112
|
readonly oauthProviders: OAuthProviderConfig[];
|
|
112
113
|
readonly emailConfig?: EmailConfig;
|
|
113
114
|
readonly domains: DomainConfig[];
|
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.");
|
|
@@ -323,6 +323,7 @@ class _StackClientAppImpl {
|
|
|
323
323
|
evaluatedConfig: {
|
|
324
324
|
id: data.evaluatedConfig.id,
|
|
325
325
|
credentialEnabled: data.evaluatedConfig.credentialEnabled,
|
|
326
|
+
magicLinkEnabled: data.evaluatedConfig.magicLinkEnabled,
|
|
326
327
|
allowLocalhost: data.evaluatedConfig.allowLocalhost,
|
|
327
328
|
oauthProviders: data.evaluatedConfig.oauthProviders,
|
|
328
329
|
emailConfig: data.evaluatedConfig.emailConfig,
|
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"
|
|
@@ -34,7 +35,7 @@
|
|
|
34
35
|
"tailwindcss-scoped-preflight": "^2.1.0",
|
|
35
36
|
"yup": "^1.4.0",
|
|
36
37
|
"@stackframe/stack-sc": "1.4.1",
|
|
37
|
-
"@stackframe/stack-shared": "2.3.
|
|
38
|
+
"@stackframe/stack-shared": "2.3.2"
|
|
38
39
|
},
|
|
39
40
|
"peerDependencies": {
|
|
40
41
|
"@mui/joy": "^5.0.0-beta.30",
|